I remember reading in the "Guide and Hint"-doc to the 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,
writeCharacteristicfor a particular characteristic, if it returnstrue, the next call to anyBluetoothGattorBluetoothGattServermethod should be done after theonCharacteristicReadcallback 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 callwriteCharacteristicorreadCharacteristicon any characteristic soon after the first one, it is ignored.
Android provides built-in platform support for Bluetooth Low Energy (BLE) in the central role and provides APIs that apps can use to discover devices, query for services, and transmit information.
The BLE Send block transmits data or instructions from your Android™ mobile device to a nearby device or sensor using the Bluetooth® Low Energy (BLE) protocol.
The ATT Maximum Transmission Unit (MTU) is the maximum length of an ATT packet. Per the Bluetooth Core Specification, the maximum length of an attribute can be 512 bytes. In reality, it can be slightly larger than this to accommodate the ATT header. On Android, the maximum MTU can be 517 bytes.
Samsung recently published a "migration"-document on the same page I linked in my question. They exactly answer my question while comparing the new native BLE API with the Samsung BLE API:
The synchronous nature of the stack and F/W hasn’t been affected. That is, if we call for example,
writeCharacteristicfor a particular characteristic, if it returns true, the next call to anyBluetoothGattorBluetoothGattServermethod should be done after theonCharacteristicReadcallback 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 callwriteCharacteristicorreadCharacteristicof anycharacteristicsoon after the first one, it is ignored.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With