I'm sending a command to bluetooth device but got no response return back. What'm I doing wrong for creating the data packet?
Here is the example for the frame format describe by document.

I've tried on create a data such as:
func peripheral(_ peripheral: CBPeripheral, didDiscoverCharacteristicsFor service: CBService, error: Error?) {
let bytes : [UInt16] = [0x0000, 0x0002, 01, 00]
let data = Data(bytes: bytes, count: bytes.count)
self.peripheral.writeValue(data, for: characteristic, type: CBCharacteristicWriteType.withoutResponse)
}
func peripheral(_ peripheral: CBPeripheral, didWriteValueFor characteristic: CBCharacteristic, error: Error?) {
if (error != nil) {
print("didWrite Value for characteristic:\(characteristic)")
}
}
}
I though I did write value to peripheral success, but after that no any respond of func peripheral(_ peripheral: CBPeripheral, didUpdateValueFor ...) return. Anyone please help?
UInt8. - Gereonlet bytes : [UInt8] = [0x00, 0x00, 0x00, 0x02, 0x01, 0x00]- Orkhan Alikhanov[ 0, 0, 0, 2, 1, 0 ]- Gereon