Hi,
Device: ESP8266 ESP-12F NodeMCU
OS: Mac M1 Ventura 13.2
Arduino IDE 2.2.1
I am trying to verify this sketch, but I get strange errors. All libraries (WifiManager 0.15.0 nad MySensors 2.3.2) are included. Some guys from the project already encountered with same errors and they solved it by downgrading Arduino IDE. I don't think that downgrade should be the right solution. Could you please provide some guidance why I get these errors what others don't?
Thank you,
Sketch:
Errors:
In file included from /Users/attila/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.2/libraries/Ticker/src/Ticker.h:24,
from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:137:
/Users/attila/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/chrono:397:6: error: macro "max" requires 2 arguments, but only 1 given
397 | max() noexcept
| ^
In file included from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:134:
/Users/attila/Documents/Arduino/libraries/MySensors/MySensors.h:98: note: macro "max" defined here
98 | #define max(a,b) ((a)>(b)?(a):(b)) //!< max
|
In file included from /Users/attila/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.2/libraries/Ticker/src/Ticker.h:24,
from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:137:
/Users/attila/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/chrono:398:37: error: macro "max" requires 2 arguments, but only 1 given
398 | { return numeric_limits<_Rep>::max(); }
| ^
In file included from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:134:
/Users/attila/Documents/Arduino/libraries/MySensors/MySensors.h:98: note: macro "max" defined here
98 | #define max(a,b) ((a)>(b)?(a):(b)) //!< max
|
In file included from /Users/attila/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.2/libraries/Ticker/src/Ticker.h:24,
from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:137:
/Users/attila/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/chrono:401:6: error: macro "min" requires 2 arguments, but only 1 given
401 | min() noexcept
| ^
In file included from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:134:
/Users/attila/Documents/Arduino/libraries/MySensors/MySensors.h:94: note: macro "min" defined here
94 | #define min(a,b) ((a)<(b)?(a):(b)) //!< min
|
In file included from /Users/attila/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.2/libraries/Ticker/src/Ticker.h:24,
from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:137:
/Users/attila/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/chrono:576:6: error: macro "min" requires 2 arguments, but only 1 given
576 | min() noexcept
| ^
In file included from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:134:
/Users/attila/Documents/Arduino/libraries/MySensors/MySensors.h:94: note: macro "min" defined here
94 | #define min(a,b) ((a)<(b)?(a):(b)) //!< min
|
In file included from /Users/attila/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.2/libraries/Ticker/src/Ticker.h:24,
from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:137:
/Users/attila/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/chrono:577:46: error: macro "min" requires 2 arguments, but only 1 given
577 | { return duration(duration_values<rep>::min()); }
| ^
In file included from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:134:
/Users/attila/Documents/Arduino/libraries/MySensors/MySensors.h:94: note: macro "min" defined here
94 | #define min(a,b) ((a)<(b)?(a):(b)) //!< min
|
In file included from /Users/attila/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.2/libraries/Ticker/src/Ticker.h:24,
from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:137:
/Users/attila/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/chrono:580:6: error: macro "max" requires 2 arguments, but only 1 given
580 | max() noexcept
| ^
In file included from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:134:
/Users/attila/Documents/Arduino/libraries/MySensors/MySensors.h:98: note: macro "max" defined here
98 | #define max(a,b) ((a)>(b)?(a):(b)) //!< max
|
In file included from /Users/attila/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.2/libraries/Ticker/src/Ticker.h:24,
from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:137:
/Users/attila/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/chrono:581:46: error: macro "max" requires 2 arguments, but only 1 given
581 | { return duration(duration_values<rep>::max()); }
| ^
In file included from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:134:
/Users/attila/Documents/Arduino/libraries/MySensors/MySensors.h:98: note: macro "max" defined here
98 | #define max(a,b) ((a)>(b)?(a):(b)) //!< max
|
In file included from /Users/attila/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.2/libraries/Ticker/src/Ticker.h:24,
from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:137:
/Users/attila/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/chrono:858:6: error: macro "min" requires 2 arguments, but only 1 given
858 | min() noexcept
| ^
In file included from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:134:
/Users/attila/Documents/Arduino/libraries/MySensors/MySensors.h:94: note: macro "min" defined here
94 | #define min(a,b) ((a)<(b)?(a):(b)) //!< min
|
In file included from /Users/attila/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.2/libraries/Ticker/src/Ticker.h:24,
from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:137:
/Users/attila/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/chrono:859:36: error: macro "min" requires 2 arguments, but only 1 given
859 | { return time_point(duration::min()); }
| ^
In file included from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:134:
/Users/attila/Documents/Arduino/libraries/MySensors/MySensors.h:94: note: macro "min" defined here
94 | #define min(a,b) ((a)<(b)?(a):(b)) //!< min
|
In file included from /Users/attila/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.2/libraries/Ticker/src/Ticker.h:24,
from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:137:
/Users/attila/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/chrono:862:6: error: macro "max" requires 2 arguments, but only 1 given
862 | max() noexcept
| ^
In file included from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:134:
/Users/attila/Documents/Arduino/libraries/MySensors/MySensors.h:98: note: macro "max" defined here
98 | #define max(a,b) ((a)>(b)?(a):(b)) //!< max
|
In file included from /Users/attila/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.2/libraries/Ticker/src/Ticker.h:24,
from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:137:
/Users/attila/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/chrono:863:36: error: macro "max" requires 2 arguments, but only 1 given
863 | { return time_point(duration::max()); }
| ^
In file included from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:134:
/Users/attila/Documents/Arduino/libraries/MySensors/MySensors.h:98: note: macro "max" defined here
98 | #define max(a,b) ((a)>(b)?(a):(b)) //!< max
|
In file included from /Users/attila/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.2/libraries/Ticker/src/Ticker.h:24,
from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:137:
/Users/attila/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/chrono:1045:49: error: macro "min" requires 2 arguments, but only 1 given
1045 | static_assert(system_clock::duration::min()
| ^
In file included from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:134:
/Users/attila/Documents/Arduino/libraries/MySensors/MySensors.h:94: note: macro "min" defined here
94 | #define min(a,b) ((a)<(b)?(a):(b)) //!< min
|
In file included from /Users/attila/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.2/libraries/Ticker/src/Ticker.h:24,
from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:137:
/Users/attila/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/chrono:1191:37: error: macro "min" requires 2 arguments, but only 1 given
1191 | operator""min(long double __mins)
| ^
In file included from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:134:
/Users/attila/Documents/Arduino/libraries/MySensors/MySensors.h:94: note: macro "min" defined here
94 | #define min(a,b) ((a)<(b)?(a):(b)) //!< min
|
In file included from /Users/attila/Library/Arduino15/packages/esp8266/hardware/esp8266/3.1.2/libraries/Ticker/src/Ticker.h:24,
from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:137:
/Users/attila/Library/Arduino15/packages/esp8266/tools/xtensa-lx106-elf-gcc/3.1.0-gcc10.3-e5f9fec/xtensa-lx106-elf/include/c++/10.3.0/chrono:1197:21: error: macro "min" requires 2 arguments, but only 1 given
1197 | operator""min()
| ^
In file included from /Users/attila/Documents/Arduino/mqtt_wifi_gateway/mqtt_wifi_gateway.ino:134:
/Users/attila/Documents/Arduino/libraries/MySensors/MySensors.h:94: note: macro "min" defined here
94 | #define min(a,b) ((a)<(b)?(a):(b)) //!< min
|
exit status 1
Compilation error: exit status 1