Vital Devices SDK
Prerequisites
Your app project must declare the required permission usage. This applies equally to both native, Flutter and React Native app projects.
Bluetooth devices
Choose Device Model
The SDK provides a list of supported Bluetooth devices. Select the matching instance to prepare for scanning.
Scanning for devices
First you have to scan for one of the supported devices.
Depending on the type of device you are connecting to, you will have to call different methods to connect to it.
Blood Pressure Monitor
Glucose Meter
After you have received samples depending on the type of device you might need to star scanning again to receive the next set of samples.
Freestyle Libre 1
Readings taken with the SDK are not guaranteed to match the official Freestyle Libre app. This mismatch happens due to the algorithm difference used by us, compared to the official Freestyle Libre.
We currently support Libre 1 sensors via NFC readings. Please make sure you add NFC capabilities in your app:
Also add the key NFCReaderUsageDescription
in your info.plist. This key should explain why your app needs to use NFC.
To use the reader:
read()
returns a result object with two fields:
- the sensor information; and
- a list of glucose samples.
Upload device samples to Vital
This automatic behaviour is available since Vital iOS 1.0.0, Vital Android 3.0.0, Vital Flutter SDK 4.0.0 and Vital React Native 4.0.0.
Vital Devices SDK automatically uploads any blood pressure and glucose samples discovered during the read operation, provided that the Vital Core SDK has a signed-in user.
The SDK does not currently buffer samples that fail to upload. You might want to ensure that the device has Internet connectivity before initiating the read operation.