本机Android BLE实现本质上是同步的吗?

我记得在“Guide and Hint”-doc中读到Samsung BLE API (archived page)

One of the most important concepts of the Samsung F/W and stack is
its synchronous nature. 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 on any characteristic soon
after the first one, it is ignored.

>这是否也适用于引入的BLE的本机实现
在Android 4.3?
> Samsung API一次只支持一个连接的GATT设备.
这在原生API中有变化吗?

解决方法:

三星最近在我在我的问题中链接的同一页面上发布了一个“迁移”文档.他们在将新的原生BLE API与Samsung BLE API进行比较时完全回答了我的问题:

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.

相关文章

Android性能优化——之控件的优化 前面讲了图像的优化,接下...
前言 上一篇已经讲了如何实现textView中粗字体效果,里面主要...
最近项目重构,涉及到了数据库和文件下载,发现GreenDao这个...
WebView加载页面的两种方式 一、加载网络页面 加载网络页面,...
给APP全局设置字体主要分为两个方面来介绍 一、给原生界面设...
前言 最近UI大牛出了一版新的效果图,按照IOS的效果做的,页...