deenam
Posts: 6
Joined: Mon May 04, 2015 5:28 pm

Reg Sensor API usage

Wed May 06, 2015 3:45 pm

It is mentioned that Universal Windows App can be executed in all Windows 10 versions.
Windows.Devices.Sensors has API's available for different sensors like Accelerometer etc.
Is it possible to use these Accelerometer API if Accelerometer is connected via I2C to Raspberry Pi board ? In the samples given, the Accelerometer driver is using Windows.Devices.I2c API.
I want to understand to which of the Windows API's will run on Windows 10 IOT core.

It was mentioned in samples that GPIO APIs are only available on Windows 10 IoT Core.
Is there documentation available on what are the API's supported by Windows 10 IOT COre ?

jtanner_msft
Posts: 105
Joined: Fri May 01, 2015 7:12 pm

Re: Reg Sensor API usage

Wed May 06, 2015 6:24 pm

I don't have a full list of the supported ones, but here is a pointer to the ones that are currently 'unsupported' which might be more useful while you're doing your development:
http://ms-iot.github.io/content/win10/U ... leApis.htm

Please understand that Windows IoT Core is a work in progress. Just because these APIs have not been implemented yet doesn't mean they won't be in the future.

If you design your application to use a given sensor type you're correct that it might not be present on every device / platform even though you've written a Universal App. As such you should have your application check to see if that API or sensor is supported when you launch and then act accordingly if it is not.
Jonathan Tanner | Microsoft | Windows 10 IoT Core Insider Preview Support | This posting is provided 'as is' with no warranties and confers no rights.

deenam
Posts: 6
Joined: Mon May 04, 2015 5:28 pm

Re: Reg Sensor API usage

Wed May 06, 2015 7:19 pm

Thanks for the reply. I would like to understand for a given example ...can I use the Universal ApI for Accelometer by invoking GetCurrentReading() from Accelometer class, instead of accessing accelometer data via I2C API's. I'm new to windows hence such queries. Will Microsoft develop the underlying layer where these Accelometer API's will use either I2C or SPI. Or is it already available ?

deenam
Posts: 6
Joined: Mon May 04, 2015 5:28 pm

Re: Reg Sensor API usage

Wed May 06, 2015 7:28 pm

My previous query was with respect to Accelometer API available under
https://msdn.microsoft.com/en-us/librar ... meter.aspx

Return to “Windows 10 for IoT”