目录
蓝牙手环数据接口指引
1 MQTT接口说明
1.1 网络访问地址、端口
1.2 数据格式
1.2.1 数据格式1 :体征+定位数据
1.2.2 数据格式2:定位数据
访问IP:视实际情况而定
访问端口:一般常用端口为1883
订阅主题:'fyarpm/n16/status/#'
[ { "wearablemac": "C5969D3D8BD5", "stepCount": "763", "calories": 71, "temperature": "36.26", "heartRate": 92, "battery": "43", "bpSystolic": 0, "bpDiastolic": 0, "bloodOxygen": 0, "sleep": null, "sos": null, "locationTime": null, "location": null, "positionMode": null, "positionAddress": null, "isWearing": true }]
说明:
l wearablemac:手环的mac地址共6个字节
l isWearing:是否佩戴
[ { "wearablemac": "C5969D3D8BD5", "sos": null, "locationTime": 1660950959000, "location": "113.5673858,22.2885501", "positionMode": "GPS", }]
l positionMode: "GPS" 或 "WIFI"
l sos: SOS报警,为true