I'm looking for help in communicating with the sparkfun tmp102 sensor via windows 10 IoT UWP app on a raspberry pi 2.

I've already found this tutorial:


but there is a problem: the GetDeviceId method is not implemented, and I have no idea how can I find the device ID (of the sensor I guess...?). I'll appreciate some help - either a way to get the device ID or a better example..

  • Just looking at that example it seems like the GetDeviceId is deliberately not implemented because the device does NOT have an ID. It looks like he is mannaully entering the I2C address somewhere and NOT using the GetDeviceId. Are you just using his code from GitHub? Or did you modify something? The I2C Address just seems to be the PIN. I suspect it only works with one device ?? :(
    – Piotr Kula
    Sep 11, 2017 at 12:21
  • Me and my team eventually made it work somehow... I don't have the code here, but we used another example we've with slight changes in the addresses where you write to and read from...
    – noamgot
    Sep 12, 2017 at 21:35

1 Answer 1


here is an example code which explain how you can interface i2c device with raspberry pi and windows IOT. in this example they are using an accelerator, all you will need to do is change the i2c bytes and it will work.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.