BLE命令写入问题-iOS

时间:2019-02-14 15:00:02

标签: swift bluetooth-lowenergy

我正在编写这种类型的命令,不适用于我的代码。

let command:[UInt8] = [0x3A,0x11,0x01,0x00,0x40,0x03,0x00,0x00,0x00,0x00,0x1e,0x01,0x18,0x00,0x00,0x00,0x00,0x00,0x58]
let sendData:Data = Data(command)                
cPeripheral.writeValue(sendData as Data, for: txCharacteristic, type: .withoutResponse)

0 个答案:

没有答案