我正在编写这种类型的命令,不适用于我的代码。
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)