Closed tve closed 6 years ago
I'm having difficulties getting STA mode to actually function.
If I don't provide a static IP then it's practically impossible to connect to mavesp8266 because it sets the MDNS hostname to mavesp8266-
If I comment out https://github.com/dogmaphobic/mavesp8266/blob/master/src/mavesp8266_vehicle.cpp#L59 (starting the serial) then it doesn't crash in STA mode. I am running without a pixracer connected (hard to load esp8266 firmware and troubleshoot when it's on the pixracer), so there's nothing sensible coming in on serial. But in AP mode it doesn't crash.
I finally figured it out. Somehow the baud rate got set to 0 in the parameters. Possibly operator error... Would be good to have a check there 'cause Serial.begin(0)
causes an exception.
Updated issue: I initially opened this as "enabling debug log on GPIO2 causes crash" but after some further troubleshooting I believe it has to do with maving set wifi_mode=1 (STA).
After enabling STA mode enabling debug log on GPIO2 causes crash. I clone the repo as-is, uncommented the line in mavesp8266.h to define ENABLE_DEBUG, and it crashes as soon as client connects: