i'm using ble shield with arduino mega and android app , i need to recognize the ble device disconnection ,how do i get that?
please help me as soon as possible thanks in advance...
Please refer to this file. It lists all of the APIs for BLE Shield. In your case, the function ble_connected() will return 1 if it is connected with peer device, otherwise return 0.