如何从极地h7心率监测仪读取心率数据?我正在为android使用evothings插件。我能够读取服务数据,其中包括一系列的特征,处理值。但是如何读取心率值呢?
// ..
{
"type": 0,
"uuid": "0000180d-0000-1000-8000-00805f9b34fb",
"handle": 3,
"characteristics": [
{
"permissions": 0,
"writeType": 2,
"properties": 16,
"uuid": "00002a37-0000-1000-8000-00805f9b34fb",
"handle": 13,
"descriptors": [
{
"permissions": 0,
"uuid": "00002902-0000-1000-8000-00805f9b34fb",
"handle": 24
}
]
},
{
"permissions": 0,
"writeType": 2,
"properties": 2,
"uuid": "00002a38-0000-1000-8000-00805f9b34fb",
"handle": 14,
"descriptors": [
]
}
]
}, // ...
打电话给evothings.ble.enableNotification(1, 13, ..)
是给null
的。
发布于 2015-01-16 09:45:52
看起来,极地H7遵循心率配置文件规范。令人感兴趣的是量测特性,它具有UUID 2a37,可以在列表中看到。
调用evothings.ble.enableNotification
只是您需要做的工作的一半。还必须调用evothings.ble.writeDescriptor(1, 24, new Uint8Array([1,0]), ...)
才能实际启动通知。
如果通知失败,可以使用readDescriptor()
轮询。
https://stackoverflow.com/questions/27957677
复制相似问题