Hello, long time reader of this forum here!
For the first time I can not find the information I need in other threads, so is my time to post also!
My ultimate goal is to connect to a private LoraWAN network that I have set up using ChirpStack. So far I have set up my gateway and successfully connected it to ChirpStack, so now I'm trying to program my device, which is a Heltec LoraWAN ESP32 v2 board.
I have went through the official documentation many many times and followed every step and instruction. I've installed the libraries and board types and set up my region from the Tools menu.
When I try to compile the example as described here, I get the following errors:
error: 'HELTEC_BOARD' was not declared in this scope
Mcu.begin(HELTEC_BOARD,SLOW_CLK_TPYE);
^~~~~~~~~~~~
error: 'SLOW_CLK_TPYE' was not declared in this scope
Mcu.begin(HELTEC_BOARD,SLOW_CLK_TPYE);
I went through a bunch of similar threads and found that both of these constants need to be 0 for my board, but when I tried replacing them with literals the same errors appeared in the library files:
/home/g/Arduino/libraries/Heltec_ESP32_Dev-Boards/src/driver/gpio-board.c:56:15: error: 'RADIO_NSS' undeclared (first use in this function); did you mean 'RAD_TO_DEG'?
if(obj->pin==RADIO_NSS && radio_nss_inited==false)
^~~~~~~~~
RAD_TO_DEG
/home/g/Arduino/libraries/Heltec_ESP32_Dev-Boards/src/driver/gpio-board.c:56:15: note: each undeclared identifier is reported only once for each function it appears in
/home/g/Arduino/libraries/Heltec_ESP32_Dev-Boards/src/LoRaWan_APP.cpp: In member function 'void LoRaWanClass::sleep(DeviceClass_t)':
/home/g/Arduino/libraries/Heltec_ESP32_Dev-Boards/src/LoRaWan_APP.cpp:666:33: error: 'HELTEC_BOARD' was not declared in this scope
Mcu.sleep(classMode,debugLevel,HELTEC_BOARD,SLOW_CLK_TPYE);
^~~~~~~~~~~~
/home/g/Arduino/libraries/Heltec_ESP32_Dev-Boards/src/LoRaWan_APP.cpp:666:46: error: 'SLOW_CLK_TPYE' was not declared in this scope
Mcu.sleep(classMode,debugLevel,HELTEC_BOARD,SLOW_CLK_TPYE);
^~~~~~~~~~~~~
I feel like I've tried just about anything to get this to work, so this is my last resort.
Thank you for the attention!