adafruit / AdafruitClassLibrary

Windows IoT Core libraries for Raspberry Pi
MIT License
26 stars 11 forks source link

Use Windows Location API in addition to manual GPS text parsing #7

Open naikrovek opened 7 years ago

naikrovek commented 7 years ago

The current GPS library shares location only through Adafruit objects and not through the Windows Location API. On Windows 8.0 and later, the Windows Location API is the standard way to consume location data of all types (not just GPS.)

Please implement Windows Location API support in this library.

This will require a signed Adafruit Location driver for Windows written in C++. You can see how this is done here: https://github.com/juliankay/FakeGPS/blob/master/src/FakeGPS.Driver/ but instead of pulling location data from the registry, pull it from the Adafruit GPS objects that are currently in place.

driverblock commented 7 years ago

Thanks for the tip - I'll investigate. Not sure if Win IoT would support this, however. Also, Win IoT doesn't have a simple facility for installing drivers. You can do it, but it's not straightforward.

naikrovek commented 7 years ago

Windows 10 IoT does support the Location API, even the C++ compiled bits.

You'd use devcon.exe to set up the driver, in the worst case. It may be possible to package the driver as a .cab file and deploy it via the web UI of Win10 IoT.

Personally, even if I need to SSH into the device and run some devcon.exe commands, I'm fine with that.