Share via

SerialPort problems in UWP

Mingi Kim 21 Reputation points
2021-08-04T08:15:23.63+00:00

Hi, Microsoft.
I'm making an app communicate with MWM2 in UWP. I know I have to use Neurosky's API(Window ver.), but it doesn't work.
Well, first i tried RFCOMM communicate but, it failed. Because DataWriter can't use ASCII, DataReader can't communicate with device(The error occurred like server cut off the stream).
So I found another way, finally I found Bluetooth Serial Communicate. MWM2 connected with COM3, COM4.
I read it and I thought How many ports left? So I use SerialPort.GetPortNames(). However, the error occurred : Enumeration of serial port names is not supported on the current platform.
I wonder UWP can not use SerialPort communcation?

Developer technologies | Universal Windows Platform (UWP)

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.