Page 1 of 1

Reconnecting to a disconnect drone using python.

Posted: Sat Jan 12, 2019 3:57 pm
by albussimba
hi i am wondering if there is any way or an example code that will allow me to reconnect a disconnected drone in python.

currently my python script would stall/hang if one of the drones is disconnected.

So I'm wondering if there is any failsafe code that would allow me to reconnect the drone

Re: Reconnecting to a disconnect drone using python.

Posted: Tue Jan 28, 2020 3:07 pm
by kristoffer
I don't think we have an example for that.

In the asynchronous API you should listen to the connection_lost() call back (in the Crazyflie class) to detect when you lost connection.