|
我用 uniapp 也获取不到服务值
以下是我打印的log:
// ios iphone 6
15:40:06.330 服务值
15:40:06.351 服务值 2
15:40:06.371 获取蓝牙服务 isPrimary true uuid 6E400001-B5A3-F393-E0A9-E50E24DCCA9E
15:40:06.392 services_id 6E400001-B5A3-F393-E0A9-E50E24DCCA9E
15:40:07.281 characteristics
15:40:07.301 all characteristics: [{"properties":{"indicate":false,"notify":false,"read":false,"write":true},"uuid":"6E400002-B5A3-F393-E0A9-E50E24DCCA9E"},{"properties":{"indicate":false,"notify":true,"read":false,"write":false},"uuid":"6E400003-B5A3-F393-E0A9-E50E24DCCA9E"}]
15:40:07.322 *** write ***
15:40:07.341 characteristics: 6E400002-B5A3-F393-E0A9-E50E24DCCA9E
15:40:07.362 deviceId, serviceId: F6521AEC-0211-4211-AADA-7E52A73D8CFA 6E400001-B5A3-F393-E0A9-E50E24DCCA9E
15:40:07.384 notify characteristics: 6E400003-B5A3-F393-E0A9-E50E24DCCA9E
15:40:07.403 notify
15:40:07.423 notify F6521AEC-0211-4211-AADA-7E52A73D8CFA 6E400001-B5A3-F393-E0A9-E50E24DCCA9E 6E400003-B5A3-F393-E0A9-E50E24DCCA9E
15:40:07.444 notify success notifyBLECharacteristicValueChangek
15:40:07.464 监听接收信息
15:40:08.346 ************** ble_connect **************
15:40:08.366 ********** F6521AEC-0211-4211-AADA-7E52A73D8CFA 6E400001-B5A3-F393-E0A9-E50E24DCCA9E 6E400002-B5A3-F393-E0A9-E50E24DCCA9E
15:40:08.387 写入数据成功 success {"cmd":"num"}
15:40:08.407 ble_write, 写入成功, 等待响应
15:40:08.428 ** ble_write complete ** [object Object] {"code":0,"message":"ok"}
// ios iphone se2
15:47:25.260 服务值
15:47:25.280 服务值 1
15:47:25.301 获取蓝牙服务 isPrimary true uuid 00001523-1212-EFDE-1523-785FEABCD123
也是没适配的问题嘛 |
|