BLE - Glucose

Hi Guys, I’m trying to read my blood sugar through a BLE meter.

However, I cannot read the return notification. I am not getting my blood glucose value.

I was inspired by this topic:

Im using this plugin with Ionic1:

this is my code:

ble.startNotification(deviceId, '1808', '2a18', onSuccess, onError);
var data = new Uint8Array(2);
data[0] = "0x01";   
data[1] = "0x01";  
ble.write(deviceId, '1808', '2a52', data.buffer, onSuccess, onError);

Thanks in advance.

Are you getting any error messages? What does your onSuccess function look like?

Also you need to connect to the device before you can use write and startNotification.