连接BLE设备并监听接收到的数据(秤)

时间:2019-06-29 09:44:33

标签: ios swift bluetooth bluetooth-lowenergy

我有蓝色设备(秤),其中

Service UUID: **6e400001-b5a3-f393-e0a9-e50e24dcca9e** 
RX Characteristic UUID: **6e400002-b5a3-f393-e0a9-e50e24dcca9e**
 Encrypted write: true
TX Characteristic UUID: **6e400003-b5a3-f393-e0a9-e50e24dcca9e**
 Encrypted notify: true

这是协议命令

Command _______参数响应____动作
_
{ZA} {ZAn} ____ [0/1],n = 0/1 _____获取,将确认设置为开/关

Setting
{SPWU} {SPWUn}, n = 0/1/2
Get, set the weight units. The setting locks the units. 0 = kg
1 = lb
2 = both (default)

如何获取刻度值。

0 个答案:

没有答案