Closed piwi1263 closed 8 years ago
Hi,
Sorry about the confusion there. The SerialDevice.FromIdAsync is the method that actually has the correct return type, while the ones for SpiDevice and I2cDevice are incorrect.
At least it is clear, but using the await for the SerialDevice.FindIdAsync() returns into a GetAwaiter not implemented/not found error.
For now, please use .GetResults() on the IAsyncOperation. You can also use System.IO.Ports.SerialPort for serial communication. For all other peripherals, I would recommend using the classes in Microsoft.Llilum.Devices, as they are more lightweight than their UWP equivalents
Hi Mikhail,
thanks for answer, I'll give it a shot and see how far I come.
Cheers,
Peter.
Is the return type correct here for the SerialDevice.FromIdAsync() ?
Or should this match more to return just the Device as is done by the I2cDevice and the SpiDevice ?