Greg Young - trying to update older but working...

trying to update older but working sensESP working unit, built on 2.6.0 , i want to change to wifi etc credentials (which at the time i hardcoded into main.cpp) cant get it to update? ive changed the credentials in main.cpp under app builder section.. Have erased ESP32 (using both platformIO tool, also tried using python esptool - both report success, but i continually find the ESP trying to access the "old"wifi network ( using serial monitor, i can see it working and trying to access old incorrect SSID etc) Then decided to build a new project .. using same (previuosly working ok) platformIO.ini file (with 2.6.0) ... after doing this, it does a bunch of platformIO stuff, and then when i try to build, i get following error I also tried using the very latest example main.cpp and platformIO.ini files that are on github "example page" .. and also getting same below error Compiling .pio\build\esp32dev\lib4e6\AceButton\ace_button\testing\EventTracker.cpp.o Archiving .pio\build\esp32dev\lib31b\libESPAsyncWiFiManager.a .pio/libdeps/esp32dev/WebSockets/src/WebSocketsClient.cpp: In member function 'void WebSocketsClient::loop()': .pio/libdeps/esp32dev/WebSockets/src/WebSocketsClient.cpp:279:30: error: 'class WiFiClientSecure' has no member named 'setCACertBundle'; did you mean 'setCACert'? _client.ssl->setCACertBundle(_CA_bundle); ^~~~~~~ setCACert Compiling .pio\build\esp32dev\lib370\ESPmDNS\ESPmDNS.cpp.o *** [.pio\build\esp32dev\lib017\WebSockets\WebSocketsClient.cpp.o] Error 1 ==================================================================== [FAILED] Took 22.52 seconds ====================================================================
2 Replies
Greg Young
Greg YoungOP3mo ago
its a red colored fatal error that stops the build process. ok .. solved above, made a copy of the older working folders etc , renamed and then changed the main.cpp file only. this presumabky picked up all the background stuff preserved from 1 year ago, and allowed it to build and load the file again to ESP. im sure there is a better way, but after3hrs of messing around with vs code and platformIo this was my solution.
Matti Airas
Matti Airas2mo ago
The ESP32 Arduino framework stores the wifi credentials on the device EEPROM (if I remember correctly). I've tried my best to ignore those and always use the hardcoded or filesystem values instead, but it can be a bit wonky. I don't quite remember when the push button interface was implemented, but if your device has a button connected to GPIO2, a long button press should reset the device configuration, hopefully the WiFi stuff as well.

Did you find this page helpful?