This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Android app怎么通过writeCharacteristic函数写入多个字节

我能够通过

characteristic.setValue(MySend);
mBluetoothLeService.writeCharacteristic(characteristic);

的方式写入一个字节,但是怎么同时写入20个字节呢(我的characteristic是20字节的)?好像单纯把MySend改成20个字节的byte数组是不行的