我有一个 react-native 应用程序,我试图从 Accu-Chek Guide 设备获取葡萄糖测量值。
我对 BLE 的了解有限,这个 stackoverflow 问题对我理解蓝牙和检索葡萄糖测量有很大帮助。 从通知特征读取(离子 - 蓝牙)
所以,我在我的代码中做了什么:
1、连接BLE外设
2、监听特性Glucose Feature
& Record Access Control Point
3、发送0x0101 (Report stored records | All records)
到Record Access Control Point
4、解码响应
到目前为止,我有 1-3 个工作,但我不知道如何解码来自 Glucose Feature 的响应:
通知响应Glucose Measurement
[27、4、0、195、164、7、7、14、11、6、5、90、2、119、194、176、195、184、0、0]
通知Record Access Control Point
[6, 0, 1, 1]