npm-parrot-minidrone
npm-parrot-minidrone copied to clipboard
Detect when drone is disconnected (powered off)
When the drone is turned off, we are not aware of it. Already tried to use peripheral.on('disconnect', ...) or noble.on('disconnect', ...) with no effect. Maybe we should try to implement some kind of ping to check that drone is alive.
I totally agree. If the drone is not powered on / available and I call new Drone() with autoconnect enabled, the program crashes.