things4u / ESP-1ch-Gateway

Version 6 of the single channel gateway
MIT License
364 stars 147 forks source link

ArduinoJson `#include <bits/error_constanst.h>` file not found #122

Open goulgoul opened 9 months ago

goulgoul commented 9 months ago

Hello,

For some reason, the file #include <bits/error_constanst.h>does not seem to be found by the compiler as lib ArduinoJson is compiled. I am using the Arduino IDE, btw.

I fixed it by opening the library code and changing the include to #include <%USERPROFILE%/AppData/Local/Arduino15/packages/Heltec-esp32/tools/xtensa-esp32s3-elf-gcc/gcc8_4_0-esp-2021r2-patch3/xtensa-esp32s3-elf/include/c++/8.4.0/xtensa-esp32s3-elf/bits/error_constants.h> (replace %USERPROFILE% with C:/Users/YOUR_USER/...).

Kind regards,

Goulgoul.