Not able to disconnect bluetooth connection from android mobile
Posted: Wed Jan 04, 2023 8:59 am
Hi Team,
I am working on a ble android application which talks to device which has esp32 firmware installed.
Issue: Not able to disconnect from device when notification is enabled.
Application scenario:
1. Connect To device
2. Enable Notification
3. Send Command
4. Receive Data
5. Disable Notification
6. Disconnect
I could connect to the device and enable notification using the following characteristic 0000c306-0000-1000-8000-00805f9b34fb: INDICATABLE. Once connected i could write and get the response back using characteristic 0000c304-0000-1000-8000-00805f9b34fb: WRITABLE.
When i try to disable the notification and disconnect, the module is not responding with any logs or commands.
Hence cannot disconnect from the device.
But i could disconnect from device if i just do only the steps (1 , 6). Issue is without the step 2 we will not able to receive any data from the bluetooth device if the notification characteristic is not enabled, hence the application will not work.
Please help on disable and disconnect AT commands with any documents or reference if we can get or let me know if any more information needed on the issue.
Regards,
Sabari
I am working on a ble android application which talks to device which has esp32 firmware installed.
Issue: Not able to disconnect from device when notification is enabled.
Application scenario:
1. Connect To device
2. Enable Notification
3. Send Command
4. Receive Data
5. Disable Notification
6. Disconnect
I could connect to the device and enable notification using the following characteristic 0000c306-0000-1000-8000-00805f9b34fb: INDICATABLE. Once connected i could write and get the response back using characteristic 0000c304-0000-1000-8000-00805f9b34fb: WRITABLE.
When i try to disable the notification and disconnect, the module is not responding with any logs or commands.
Hence cannot disconnect from the device.
But i could disconnect from device if i just do only the steps (1 , 6). Issue is without the step 2 we will not able to receive any data from the bluetooth device if the notification characteristic is not enabled, hence the application will not work.
Please help on disable and disconnect AT commands with any documents or reference if we can get or let me know if any more information needed on the issue.
Regards,
Sabari