Skip to content

Sample Xamarin.Forms app that interacts with Xiaomi Mi Band 2.

License

Notifications You must be signed in to change notification settings

DotNetNomads/XamarinFormsMiBand2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xamarin.Forms based application which reads Heart Rate information from Xiaomi MI Band 2

General info

It should work on Android and iOS, but code not so clean. I created it as proof-of-concept of crossplatform app that interacts with fitness bracelet.

Demo

Dependencies

How to run?

  1. Install MiFit application
  2. Pair your bracelet with MiFit app.
  3. Enable "Discovery" setting for bracelet (in MiFit app).
  4. Ensure that Blueetoth enabled and bracelet connected to phone.
  5. Build and run project for your platform (iOS, Android)

Technical Details

Mi Band 2 implements default heart rate service that described in Bluetooth GATT Specification, here: https://www.bluetooth.org/docman/handlers/downloaddoc.ashx?doc_id=239866, all services can be found here: https://www.bluetooth.com/specifications/gatt. I've used xamarin-bluetooth-le library to interact with bracelet. Interaction steps:

  1. Resolving a device .
  2. Connecting to the device.
  3. Subsribing to heart rate update event.
  4. Starting heart rate measurement process.

Useful links

About

Sample Xamarin.Forms app that interacts with Xiaomi Mi Band 2.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages