android - Samsung Android BLE 多重读写

标签 android bluetooth bluetooth-lowenergy android-bluetooth characteristics

在 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/

相关文章:

android - 如何访问菜单项?

安卓。如何在真正的大图像(位图)上写文字并保存

linux - 如何判断蓝牙适配器是否支持蓝牙 LE (4.0)?

bluetooth - 当您信任蓝牙设备时,存储信任的配置文件在哪里?

android - 蓝牙 Gatt 问题 onClientConnectionState() - status=8 clientIf=29

android - 项目构建期间出现 ZipException

c# - 如何在 xamarin 的 ListView 中使用 OnItemLongClick

ios - 在iOS上还原Microsoft Band连接

android - 如何使用 GattServer 以编程方式清除蓝牙缓存

iphone - 应用程序在后台崩溃,而蓝牙连接长时间丢失