3rd party devices integration

Hi.
I have FDA certified smartbands with SpO2 and HR real time measurement.
I know the BLE protocols of these device and can write application to get these measurements from the devices.

How can I integrate these devices support into your application?
Create a plugin, implement API or whatever?

Hello Den, do you have some link on the device?

We have an open API for wearbales:

This is now missing the SPO2 information, but this is easy to add…

It’s Maxim Integrated 103 some other devices. Thank you for the fast response, @petr-urbandroid!

Intent: com.urbandroid.sleep.ACTION_EXTRA_DATA_UPDATE
Extra: com.urbandroid.sleep.EXTRA_DATA_SPO2 with SPO2 value as parameter
Extra: com.urbandroid.sleep.EXTRA_DATA_TIMESTAMP timestamp of the measurement

@petr-urbandroid, may I know the timestamp format? Is it Unix timestamp in milliseconds that have elapsed since January 1, 1970 or something different?

1 Like

So, by debugging we found out the correct Intent & data format to make SpO2 reading work:

Intent: com.urbandroid.sleep.ACTION_EXTRA_DATA_UPDATE
Extra: com.urbandroid.sleep.EXTRA_DATA_SPO2 with SPO2 value as Float
Extra: com.urbandroid.sleep.EXTRA_DATA_TIMESTAMP timestamp of the measurement as Unix timestamp in milliseconds that have elapsed since January 1, 1970

1 Like