Open JBrumby opened 4 years ago
Hi, it looks like you've got format-overflow checking enabled in your compiler. This has uncovered my lazy coding with regard to string lengths in the web server code. So your compiler is working out the maximum string length it is going to print according to all of the arrays that get included and if all are at maximum size they will overflow the output array.
e.g. /home/peter/Arduinosrc/eq3esp/esp32_mqtt_eq3/main/eq3_bootwifi.c: In function 'mongoose_serve_status': /home/peter/Arduinosrc/eq3esp/esp32_mqtt_eq3/main/eq3_bootwifi.c:354:26: error: '
I haven't seen this reported before. What IDF/compiler are you using?
I've updated with a few minor changes and briefly tested on one of my devices which seems to work OK. As I don't see the warnings/errors myself I cannot test that it will fix your issue. Please give this a try and let me know how you get on.
Paul.
Toolchain path: /home/peter/.espressif/tools/xtensa-esp32-elf/esp32-2019r1-8.2.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc Toolchain version: esp32-2019r1 Compiler version: 8.2.0 It is the newest compiler chain, that is online available. It seems it has the check enabled. I search how to disable it. Thanks
sorry for the late response but you use esp-idf version 4.* .. with this version the event_loop was redesigned and the build-system was changed
please use the esp-idf version 3.*
Sorry I can't compile and I don't understand what to do. It seams a code problem, with sprint %s Can anybody help.
Thanks in advance Brumby . . .