Strange ESP32 compiling problem
Hello,
I don't know if someone here can help, it's not really a chipchop related question but it's been driving me crazy all day.
I have a small project that worked fine for the last two months and I needed to change few things. Nothing big, just a change in few variable init values. Before you ask they are just short strings like "zc_1" changing to "zap_coor_x" and stuff like that, nothing really that could affect the code logic whatsoever.
PlatformIO says that it's compiled ok but it does show two warnings that I didn't have before. When I upload and run the code on the device the WiFi client fails maybe 30 seconds to a minute later and comes up with some bogus error?
The code definitely worked absolutely fine so I can't figure out what has changed.
Here are the warnings
.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-uart.c:153:9: warning: 'return' with no value, in function returning non-void
return;
.platformio/packages/framework-arduinoespressif32/cores/esp32/esp32-hal-uart.c:149:6: note: declared here
bool uartSetPins(uint8_t uart_num, int8_t rxPin, int8_t txPin, int8_t ctsPin, int8_t rtsPin)
and here is the error when running on the ESP
[154204][E] [WiFiClient. cpp:320] setSocketOption(): fail on -1, errno: 9, "Bad file number"
The board is a DollaTek ESP32-C3 and as I said, it compiles but now with these two warnings and fails on device but not instantly!?
Thnx in advance