April 2017
Intermediate to advanced
242 pages
6h 10m
English
The last topic of this section deals with writing the data on the characteristic. For writing process, the first thing to check is if the characteristic needs an enable notification request. If central does not explicitly enable the notifications on the peripheral, the peripheral will not send notifications back upon receiving the data. The notifications can be enabled by calling:
mBluetoothGatt.setCharacteristicNotification(characteristic, true);
The android application attached with the resource of this chapter does not perform writing to characteristic function but it can easily be extended by just implementing the following function in the application:
private boolean writeToCharacteristic(BluetoothGattCharacteristic ...
Read now
Unlock full access