Receiving a notification from GATT Server, immediately after a blood glucose measurement is received

108 views
Skip to first unread message

mital...@gmail.com

unread,
Apr 5, 2018, 5:06:32 PM4/5/18
to web-bluetooth
Hello,

How would I go about implementing the web Bluetooth functionality for receiving a blood glucose measurement on the GATT Client, immediately after it was measured by the CareSens glucometer and a connection was initiated from the GATT Server? As of this moment, I am only able to read all of the glucose measurements on memory, however it would be more efficient to simply return the last measurement which was stored. Thank you in advance!

Regards,
Dimitar

Reilly Grant

unread,
Apr 5, 2018, 9:22:12 PM4/5/18
to mital...@gmail.com, web-bl...@chromium.org
This question does not seem specific to Web Bluetooth. I recommend asking on Stack Overflow as that will reach a wider audience which may have familiarity with the device in question. We unfortunately can't provide advice for how to use any arbitrary Bluetooth device. If you have documentation for the GATT services provided by the device and are looking for information about how to access them using Web Bluetooth then we can give you a hand.
Reilly Grant | Google LLC | rei...@chromium.org | +1 650 214 0177


--
You received this message because you are subscribed to the Google Groups "web-bluetooth" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web-bluetoot...@chromium.org.
To post to this group, send email to web-bl...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/web-bluetooth/22aa7718-93bc-4a50-9c98-b8cb1f23dd62%40chromium.org.

mital...@gmail.com

unread,
Apr 6, 2018, 3:12:31 AM4/6/18
to web-bluetooth, mital...@gmail.com
Hello Reily,

My apologies, I'll address my concern to Stack Overflow. On a side note, I am using the generic GATT service specification of glucose devices on https://www.bluetooth.com/specifications/gatt. However, in the specification, I wasn't able to find any information about handling a measurement, right after it was taken.

mital...@gmail.com

unread,
Apr 6, 2018, 6:46:52 AM4/6/18
to web-bluetooth, mital...@gmail.com
I've identified how to solve the issue of getting the last measurement, after reading into the generic GATT specification of the glucometer. Now I run into another problem, after I do racpCharacteristic.writeValue(new Uint8Array([1,1]))  to the RACP(Record Access Control Point) to get all the records, I retrieve them just fine. However, the next time I write to the RACP using racpCharacteristic.writeValue(new Uint8Array([1,3,1 0xB6, 0X08)) as an example, to get only the values after the sequence number (0xB6, 0x08) - 2230 as a decimal, it only notifies on my previous written racp characteristic value which is (1,1), therefore returns all records.


On Friday, April 6, 2018 at 3:22:12 AM UTC+2, Reilly Grant wrote:
Reply all
Reply to author
Forward
0 new messages