BLE: How to check if device is still connected or not ?
Author: medteckCreated Jul 7, 2018Updated Aug 23, 2025
Labelsenhancement
I've tried with:
if(!connexion_initialized && !trying_connection && !robot.Running()) { fmt.Printf("Parrot minidrone is disconnected") }
I've also tries with:
robot.Connections().Len()
which returns "1" even after my device turns off.
I need it because I want to reconnect to my drone whenever it turns on.
Source: hybridgroup/gobot