TI BLE 如何设置让Android app通过函数写入多个字节?

2019-07-18 15:01发布

Android app怎么通过writeCharacteristic函数写入多个字节?
我能够通过
characteristic.setValue(MySend);
mBluetoothLeService.writeCharacteristic(characteristic);
的方式写入一个字节,但是怎么同时写入20个字节呢(我的characteristic是20字节的)?好像单纯把MySend改成20个字节的byte数组是不行的



友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。