UWP, Esri.ArcGISRuntime 100.14.0
Having problem with high cpu usage when using NmeaLocationDataSource with FromStreamCreator on UWP. Can't use FromSerialPort because it's a virtual com port and UWP won't allow that.
When getting gps data from com port it's using 20-50% cpu.
Any ideas?
Ping @dotMorten_esri
How did you implement the stream? I've seen issues where the read on the stream isn't blocking and could cause this
I used the pattern in the api reference:
var port = new System.IO.Ports.SerialPort("COM7", 9600); NmeaLocationDataSource serialPortDatasource = NmeaLocationDataSource.FromStreamCreator( onStart: (ds) => { port.Open(); return Task.FromResult(port.BaseStream); }, onStop: (ds) => { port.Close(); return Task.CompletedTask; } );