A central device connects to peripheral devices and enables notification/indications.
On the central device side, when a connection_closed_id event occurs, is it necessary to disable any enabled notifications/indications. The connection is closed, so any setting will never reach the remote device, so it seems unnecessary. Having said that I have been told, it is necessary to disable, so I have so far always disabled them.
Bluetooth Low Energy
Discussion Forums
Answered
Answered
Hi,
The subscription settings are volatile unless you are bonded. When bonded the GATT server device will restore the subscriptions when a new connection is established.
To modify any subscription you need to be connected, otherwise nothing will reach the GATT server as you said.
Disable able notification after ble disconnect
Disable able remote notification after ble disconnect
To enable notifications, indications etc... we use the below command
gecko_cmd_gatt_set_characteristic_notification( handle , characteristic....)
To Disable
gecko_cmd_gatt_set_characteristic_notification( handle, characteristic,
gatt_disable);
This may seem like a strange question.
A central device connects to peripheral devices and enables notification/indications.
On the central device side, when a connection_closed_id event occurs, is it necessary to disable any enabled notifications/indications. The connection is closed, so any setting will never reach the remote device, so it seems unnecessary. Having said that I have been told, it is necessary to disable, so I have so far always disabled them.
Hi,
The subscription settings are volatile unless you are bonded. When bonded the GATT server device will restore the subscriptions when a new connection is established.
To modify any subscription you need to be connected, otherwise nothing will reach the GATT server as you said.
Regards,
Tiago