npm-parrot-minidrone icon indicating copy to clipboard operation
npm-parrot-minidrone copied to clipboard

Detect when drone is disconnected (powered off)

Open gotleg opened this issue 8 years ago • 1 comments

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.

gotleg avatar Nov 23 '16 17:11 gotleg

I totally agree. If the drone is not powered on / available and I call new Drone() with autoconnect enabled, the program crashes.

nicostuhlfauth avatar Jun 22 '17 12:06 nicostuhlfauth