在 Samsung 4.2 到 4.3 BLE 应用程序迁移指南 (http://developer.samsung.com/ble) 中说:
The synchronous nature of the stack and F/W hasn’t been affected. That is, if we call for example, writeCharacteristic for a particular characteristic, if it returns true, the next call to any BluetoothGatt or BluetoothGattServer method should be done after the onCharacteristicRead callback is received. This is because the stack is designed to support and process only one GATT call at a time, and if, for example, you call writeCharacteristic or readCharacteristic of any characteristic soon after the first one, it is ignored.
这一段有错吗?当我需要多次写入时,为什么我需要在每次写入之前/之后读取该特性?我觉得应该是这样的:
.. That is, if we call for example, writeCharacteristic for a particular characteristic, if it returns true, the next call to any BluetoothGatt or BluetoothGattServer method should be done after the onCharacteristicWrite callback is received. ...
最佳答案
是的,当然是 onCharacteristicWrite 回调。很可能是复制粘贴错误
关于android - Samsung Android BLE 多重读写,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22562847/