Samsung Android BLE multiple read/write

爷,独闯天下 提交于 2019-12-10 20:29:45

问题


In Samsung 4.2 to 4.3 BLE App Migration Guide (http://developer.samsung.com/ble) it says:

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.

Is there mistake in this paragraph? When I need multiple writes why should I need to read that characteristics before/after each write? I think it should be like this:

.. 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. ...


回答1:


Yes it is of course the onCharacteristicWrite callback. Most likely a copy paste error



来源:https://stackoverflow.com/questions/22562847/samsung-android-ble-multiple-read-write

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!