Topic: WiFi Connection Lost failsafe function
Hello
I've got a problem with my project right now, i'm using a arduino leonardo with an ESP-01 module on top. My goal was to control an RC Car, more precise a servo and a esc speed controller. I managed to do so, but there is a small or maybe big problem.
Sometimes the connection interrupts and the module makes one blue flash, after that the arduino writes the last value to the servo and the speed controller till it reconnects. this is pretty bad if your on full speed. so I i tried to build in a failsafe function with the if() and else() command including the connect_flag variable. But now it still goes on for about 5 seconds and then fully disconnects and i have to either reset the arduino or reconnect to the car to control it again.
I don't really now what to change, because i'm pretty new to this world. I guess something in the remotexy library needs to be changed, so if the connection gets interrupted or isn't good enough anymore a variable should change to 0 or something that it directly writes the values I want if that happens. I know WiFi is not the best thing for RC cars, this is just a school project.
I hope someone can help, I would be very thankful.