I have a clock with a counter. the counter is displayed in a label text, it does increment by 1 which is correct. the block also contains to check for 'CONNECTED' or 'NOT CONNECTED', which is displayed in another label text. Problem is when i power down my esp32 the block timer does not recognize the power down (disconnect) and keeps showing 'CONNECTED' but counter still active. Thanks
Android will not directly recognize whether the device is disconnected. You can handle this by sending some byte to esp every second or several seconds. If ESP is disabled and the application wants to send data, a specific error will occur. by catching this error you can disconnect bluetooth on the application side.
Thank You, Thank You, Thank You, I'll give it a try, and let you know..