Hola!

Series

1. Pair Heart Rate Band using Bluetooth LE to be used in a Windows Universal App

2. Create a Windows Universal App and access to Heart Rate Band information

3. Display Heart Rate Band battery status in a Windows Universal App

In my previous post, I wrote a series of steps to create a Windows Universal App and using this app read information from a Heart Rate Band. This band also exposes the battery charge as a characteristics, so we need to update our package manifest to read this value.

Now we can access to a device Service to read the battery charge value. In order to do this, we can use these lines of code

Now we can really Start to have an app displaying all this information.

Saludos @ Madrid

/El Bruno

References

– Polar Heart Rate Sensor H7, http://www.polar.com/us-en/products/accessories/H7_heart_rate_sensor

3 responses to “#WINDOWS10- Display Heart Rate Band battery status in a Windows Universal App #BLE”

  1. Hi, I can’t get this code to run on visual studio because it needs .NET framework 4.6, while uwp only support .NET Core.

    Like

    1. Hi Patrick
      The code base is UWP, and it can easily run on any W10 device. What do you want to do?
      Regards
      -Bruno

      Like

  2. Also, I’ve been using the official windows example with polar h7 and while it should be connected to the device it sometimes just doesn’t receive heartrate values at all.
    On my phone with the android BluetoothLeGatt code those arrive every second.

    Maybe you know what could be the reason?

    Like

Leave a comment

Discover more from El Bruno

Subscribe now to keep reading and get access to the full archive.

Continue reading