Raspberry Pi 3,win10 Iot, serial port development, copy example, serial port get return always NULL, example but can, code, Internet query results are as follows:
https://stackoverflow.com/questions/34160376/ Windows-universal-app-serial-ports-wont-open-serialdevice-fromidasync-always-n
So Microsoft does not mention this need to add something to the app manifest for serial communication Nor is there a tic K box in the app manifest GUI for serial communication.
The following needs to is added to your app manifest (create the section <Capabilities>
if it doesn ' t exist):
<Capabilities> <Devicecapability name= "serialcommunication" > <device id= "any" > < function type= "name: SerialPort " /> </ device> </ Devicecapability></capabilities< Span class= "pun" >>
UPDATE 10/2016
Microsoft has updated their documentation to reflect this requirement.
Https://msdn.microsoft.com/en-us/library/windows/apps/windows.devices.serialcommunication.aspx
Record and reprint
WIN10 IoT development Serial? Device returns null