The Lora Basic Gateway Module Build Errors

I saw and checked Elecrow's official Wiki.
https://www.elecrow.com/wiki/lora-basic-gateway-module.html

But, I encountered problems when I upload the programs to module.
I attached error messages in mu error message from Arduino IDE.

Can anyone help me?
Please give me tips!

In file included from /Users/himitu23/Downloads/ESP-sc-gway-end/ESP-sc-gway-end.ino:83:
/Users/himitu23/Documents/Arduino/libraries/WiFiManager-development/WiFiManager.h:458:41: error: 'system_event_info_t' has not been declared
  458 |     void   WiFiEvent(WiFiEvent_t event, system_event_info_t info);
      |                                         ^~~~~~~~~~~~~~~~~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/ESP-sc-gway-end.ino:153:1: error: reference to 'byte' is ambiguous
  153 | byte            currentMode = 0x81;
      | ^~~~
In file included from /Users/himitu23/Library/Arduino15/packages/esp32/tools/esp-x32/2302/xtensa-esp32-elf/include/c++/12.2.0/cmath:42,
                 from /Users/himitu23/Library/Arduino15/packages/esp32/tools/esp-x32/2302/xtensa-esp32-elf/include/c++/12.2.0/math.h:36,
                 from /Users/himitu23/Library/Arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32/esp32-hal.h:30,
                 from /Users/himitu23/Library/Arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32/Arduino.h:36,
                 from /private/var/folders/wj/5lmr_hhs7k9dq5sl5v2mg_w00000gp/T/arduino/sketches/E6BCFF1A13E5C8168F513B99BD9D1F77/sketch/ESP-sc-gway-end.ino.cpp:1:
/Users/himitu23/Library/Arduino15/packages/esp32/tools/esp-x32/2302/xtensa-esp32-elf/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: 'enum class std::byte'
  406 |   enum class byte : unsigned char;
      |                              ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32/Arduino.h:149:17: note:                 'typedef uint8_t byte'
  149 | typedef uint8_t byte;
      |                 ^~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/ESP-sc-gway-end.ino:719:6: error: variable or field 'hexCharacterStringToBytes' declared void
  719 | void hexCharacterStringToBytes(byte *byteArray, const char *hexString)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/ESP-sc-gway-end.ino:719:32: error: reference to 'byte' is ambiguous
  719 | void hexCharacterStringToBytes(byte *byteArray, const char *hexString)
      |                                ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/tools/esp-x32/2302/xtensa-esp32-elf/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: 'enum class std::byte'
  406 |   enum class byte : unsigned char;
      |                              ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32/Arduino.h:149:17: note:                 'typedef uint8_t byte'
  149 | typedef uint8_t byte;
      |                 ^~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/ESP-sc-gway-end.ino:719:38: error: 'byteArray' was not declared in this scope
  719 | void hexCharacterStringToBytes(byte *byteArray, const char *hexString)
      |                                      ^~~~~~~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/ESP-sc-gway-end.ino:719:49: error: expected primary-expression before 'const'
  719 | void hexCharacterStringToBytes(byte *byteArray, const char *hexString)
      |                                                 ^~~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/ESP-sc-gway-end.ino:765:1: error: reference to 'byte' is ambiguous
  765 | byte nibble(char c)
      | ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/tools/esp-x32/2302/xtensa-esp32-elf/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: 'enum class std::byte'
  406 |   enum class byte : unsigned char;
      |                              ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32/Arduino.h:149:17: note:                 'typedef uint8_t byte'
  149 | typedef uint8_t byte;
      |                 ^~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/ESP-sc-gway-end.ino:719:6: error: variable or field 'hexCharacterStringToBytes' declared void
  719 | void hexCharacterStringToBytes(byte *byteArray, const char *hexString)
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/ESP-sc-gway-end.ino:719:32: error: reference to 'byte' is ambiguous
  719 | void hexCharacterStringToBytes(byte *byteArray, const char *hexString)
      |                                ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/tools/esp-x32/2302/xtensa-esp32-elf/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: 'enum class std::byte'
  406 |   enum class byte : unsigned char;
      |                              ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32/Arduino.h:149:17: note:                 'typedef uint8_t byte'
  149 | typedef uint8_t byte;
      |                 ^~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/ESP-sc-gway-end.ino:719:38: error: 'byteArray' was not declared in this scope
  719 | void hexCharacterStringToBytes(byte *byteArray, const char *hexString)
      |                                      ^~~~~~~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/ESP-sc-gway-end.ino:719:49: error: expected primary-expression before 'const'
  719 | void hexCharacterStringToBytes(byte *byteArray, const char *hexString)
      |                                                 ^~~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/ESP-sc-gway-end.ino:765:1: error: reference to 'byte' is ambiguous
  765 | byte nibble(char c)
      | ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/tools/esp-x32/2302/xtensa-esp32-elf/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: 'enum class std::byte'
  406 |   enum class byte : unsigned char;
      |                              ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32/Arduino.h:149:17: note:                 'typedef uint8_t byte'
  149 | typedef uint8_t byte;
      |                 ^~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/ESP-sc-gway-end.ino: In function 'void setup()':
/Users/himitu23/Downloads/ESP-sc-gway-end/ESP-sc-gway-end.ino:187:25: error: invalid conversion from 'int' to 'eth_phy_type_t' [-fpermissive]
  187 | #define ETH_PHY_ADDR    0
      |                         ^
      |                         |
      |                         int
/Users/himitu23/Downloads/ESP-sc-gway-end/ESP-sc-gway-end.ino:924:15: note: in expansion of macro 'ETH_PHY_ADDR'
  924 |     ETH.begin(ETH_PHY_ADDR, ETH_PHY_POWER, ETH_PHY_MDC, ETH_PHY_MDIO, ETH_PHY_TYPE, ETH_CLK_MODE);
      |               ^~~~~~~~~~~~
In file included from /Users/himitu23/Downloads/ESP-sc-gway-end/ESP-sc-gway-end.ino:186:
/Users/himitu23/Library/Arduino15/packages/esp32/hardware/esp32/3.0.3/libraries/Ethernet/src/ETH.h:126:29: note:   initializing argument 1 of 'bool ETHClass::begin(eth_phy_type_t, int32_t, int, int, int, eth_clock_mode_t)'
  126 |   bool begin(eth_phy_type_t type, int32_t phy_addr, int mdc, int mdio, int power, eth_clock_mode_t clk_mode);
      |              ~~~~~~~~~~~~~~~^~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/ESP-sc-gway-end.ino:982:7: error: 'hexCharacterStringToBytes' was not declared in this scope
  982 |       hexCharacterStringToBytes(MAC_array, gatewayid.c_str());
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/ESP-sc-gway-end.ino:1085:7: error: 'hexCharacterStringToBytes' was not declared in this scope
 1085 |       hexCharacterStringToBytes(MAC_array, gatewayid.c_str());
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/_WiFi.ino: In function 'IPAddress resolveHost(String, int)':
/Users/himitu23/Downloads/ESP-sc-gway-end/_WiFi.ino:328:10: error: reference to 'byte' is ambiguous
  328 |     for (byte i = 0; i < maxTry; i++) {                                         // Try 5 times MDNS
      |          ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/tools/esp-x32/2302/xtensa-esp32-elf/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: 'enum class std::byte'
  406 |   enum class byte : unsigned char;
      |                              ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32/Arduino.h:149:17: note:                 'typedef uint8_t byte'
  149 | typedef uint8_t byte;
      |                 ^~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/_WiFi.ino:328:22: error: 'i' was not declared in this scope
  328 |     for (byte i = 0; i < maxTry; i++) {                                         // Try 5 times MDNS
      |                      ^
/Users/himitu23/Downloads/ESP-sc-gway-end/_WiFi.ino:361:10: error: reference to 'byte' is ambiguous
  361 |     for (byte i = 0; i < maxTry; i++) {
      |          ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/tools/esp-x32/2302/xtensa-esp32-elf/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: 'enum class std::byte'
  406 |   enum class byte : unsigned char;
      |                              ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32/Arduino.h:149:17: note:                 'typedef uint8_t byte'
  149 | typedef uint8_t byte;
      |                 ^~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/_WiFi.ino:361:22: error: 'i' was not declared in this scope
  361 |     for (byte i = 0; i < maxTry; i++) {
      |                      ^
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino: In function 'void stringTime(time_t, String&)':
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:319:9: error: reference to 'byte' is ambiguous
  319 |         byte _hour   = hour(eTime);
      |         ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/tools/esp-x32/2302/xtensa-esp32-elf/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: 'enum class std::byte'
  406 |   enum class byte : unsigned char;
      |                              ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32/Arduino.h:149:17: note:                 'typedef uint8_t byte'
  149 | typedef uint8_t byte;
      |                 ^~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:320:9: error: reference to 'byte' is ambiguous
  320 |         byte _minute = minute(eTime);
      |         ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/tools/esp-x32/2302/xtensa-esp32-elf/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: 'enum class std::byte'
  406 |   enum class byte : unsigned char;
      |                              ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32/Arduino.h:149:17: note:                 'typedef uint8_t byte'
  149 | typedef uint8_t byte;
      |                 ^~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:321:9: error: reference to 'byte' is ambiguous
  321 |         byte _second = second(eTime);
      |         ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/tools/esp-x32/2302/xtensa-esp32-elf/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: 'enum class std::byte'
  406 |   enum class byte : unsigned char;
      |                              ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32/Arduino.h:149:17: note:                 'typedef uint8_t byte'
  149 | typedef uint8_t byte;
      |                 ^~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:323:9: error: reference to 'byte' is ambiguous
  323 |         byte _month = month(eTime);
      |         ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/tools/esp-x32/2302/xtensa-esp32-elf/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: 'enum class std::byte'
  406 |   enum class byte : unsigned char;
      |                              ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32/Arduino.h:149:17: note:                 'typedef uint8_t byte'
  149 | typedef uint8_t byte;
      |                 ^~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:324:9: error: reference to 'byte' is ambiguous
  324 |         byte _day = day(eTime);
      |         ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/tools/esp-x32/2302/xtensa-esp32-elf/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: 'enum class std::byte'
  406 |   enum class byte : unsigned char;
      |                              ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32/Arduino.h:149:17: note:                 'typedef uint8_t byte'
  149 | typedef uint8_t byte;
      |                 ^~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:335:13: error: '_day' was not declared in this scope; did you mean 'day'?
  335 |         if (_day < 10) response += "0"; response += String(_day) + "-";
      |             ^~~~
      |             day
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:335:60: error: '_day' was not declared in this scope; did you mean 'day'?
  335 |         if (_day < 10) response += "0"; response += String(_day) + "-";
      |                                                            ^~~~
      |                                                            day
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:336:13: error: '_month' was not declared in this scope; did you mean 'month'?
  336 |         if (_month < 10) response += "0"; response += String(_month) + "-";
      |             ^~~~~~
      |             month
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:336:62: error: '_month' was not declared in this scope; did you mean 'month'?
  336 |         if (_month < 10) response += "0"; response += String(_month) + "-";
      |                                                              ^~~~~~
      |                                                              month
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:339:13: error: '_hour' was not declared in this scope; did you mean 'hour'?
  339 |         if (_hour < 10) response += "0";   response += String(_hour) + ":";
      |             ^~~~~
      |             hour
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:339:63: error: '_hour' was not declared in this scope; did you mean 'hour'?
  339 |         if (_hour < 10) response += "0";   response += String(_hour) + ":";
      |                                                               ^~~~~
      |                                                               hour
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:340:13: error: '_minute' was not declared in this scope; did you mean 'minute'?
  340 |         if (_minute < 10) response += "0"; response += String(_minute) + ":";
      |             ^~~~~~~
      |             minute
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:340:63: error: '_minute' was not declared in this scope; did you mean 'minute'?
  340 |         if (_minute < 10) response += "0"; response += String(_minute) + ":";
      |                                                               ^~~~~~~
      |                                                               minute
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:341:13: error: '_second' was not declared in this scope; did you mean 'second'?
  341 |         if (_second < 10) response += "0"; response += String(_second);
      |             ^~~~~~~
      |             second
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:341:63: error: '_second' was not declared in this scope; did you mean 'second'?
  341 |         if (_second < 10) response += "0"; response += String(_second);
      |                                                               ^~~~~~~
      |                                                               second
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino: In function 'int sendNtpRequest(IPAddress)':
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:351:9: error: reference to 'byte' is ambiguous
  351 |         byte packetBuffer[NTP_PACKET_SIZE];
      |         ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/tools/esp-x32/2302/xtensa-esp32-elf/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: 'enum class std::byte'
  406 |   enum class byte : unsigned char;
      |                              ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32/Arduino.h:149:17: note:                 'typedef uint8_t byte'
  149 | typedef uint8_t byte;
      |                 ^~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:353:16: error: 'packetBuffer' was not declared in this scope; did you mean 'setbuffer'?
  353 |         memset(packetBuffer, 0, NTP_PACKET_SIZE);                               // Zero the buffer.
      |                ^~~~~~~~~~~~
      |                setbuffer
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino: In function 'int getNtpTime(time_t*)':
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:401:9: error: reference to 'byte' is ambiguous
  401 |         byte packetBuffer[NTP_PACKET_SIZE];
      |         ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/tools/esp-x32/2302/xtensa-esp32-elf/include/c++/12.2.0/bits/cpp_type_traits.h:406:30: note: candidates are: 'enum class std::byte'
  406 |   enum class byte : unsigned char;
      |                              ^~~~
/Users/himitu23/Library/Arduino15/packages/esp32/hardware/esp32/3.0.3/cores/esp32/Arduino.h:149:17: note:                 'typedef uint8_t byte'
  149 | typedef uint8_t byte;
      |                 ^~~~
/Users/himitu23/Downloads/ESP-sc-gway-end/_utils.ino:402:16: error: 'packetBuffer' was not declared in this scope; did you mean 'setbuffer'?
  402 |         memset(packetBuffer, 0, NTP_PACKET_SIZE);                               // Set buffer contents to zero
      |                ^~~~~~~~~~~~
      |                setbuffer
Multiple libraries were found for "WiFiManager.h"
  Used: /Users/himitu23/Documents/Arduino/libraries/WiFiManager-development
  Not used: /Users/himitu23/Documents/Arduino/libraries/WiFiManager-master
exit status 1

Compilation error: reference to 'byte' is ambiguous
Sign In or Register to comment.