我能够通过
characteristic.setValue(MySend);
mBluetoothLeService.writeCharacteristic(characteristic);
的方式写入一个字节,但是怎么同时写入20个字节呢(我的characteristic是20字节的)?好像单纯把MySend改成20个字节的byte数组是不行的
cedar_xuesong:
用byte数组来写入,然后设置数组长度
在回调事件里确定发送成功
我能够通过
characteristic.setValue(MySend);
mBluetoothLeService.writeCharacteristic(characteristic);
的方式写入一个字节,但是怎么同时写入20个字节呢(我的characteristic是20字节的)?好像单纯把MySend改成20个字节的byte数组是不行的
用byte数组来写入,然后设置数组长度
在回调事件里确定发送成功
CC2340R5: Some questions about implementing the sending of ADV data on the rfPacketTx routine of the CC2340R5 chip
CC2642R: TI CC2642 HID示例问题
CC2642R: CC2642R使用外部存储W25Q16JVSSIQ, 未写成功,求帮看看是什么问题
LAUNCHXL-CC26X2R1: Some questions about the periodic advertising process of the RTLS responder