WIN10 IoT development Serial? Device returns null

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.