Errors : LoraWAN on Wireless Stick Gecko Board

I am trying to setup LoraWAN on Wireless Stick Gecko Board but the Sketech provided at https://github.com/HelTecAutomation/ESP32_LoRaWAN is giving folowing error : Arduino: 1.8.0 (Windows 10), Board: “Wireless Stick, Disabled, default_8MB, 240MHz (WiFi/BT), QIO, 80MHz, 8MB (64Mb), 921600, None”

OTAA:90: error: ‘LoRaWAN_DEBUG_LEVEL’ was not declared in this scope

uint8_t debugLevel = LoRaWAN_DEBUG_LEVEL;

                  ^

OTAA:93: error: ‘ACTIVE_REGION’ was not declared in this scope

LoRaMacRegion_t loraWanRegion = ACTIVE_REGION;

                             ^

exit status 1
‘LoRaWAN_DEBUG_LEVEL’ was not declared in this scope

This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.
Please Help.

Regards,

Azam

Hi, @azam1100

Please install the Heltec ESP32 development framework via git: https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series

The V0.0.5 release will be generate soon.

I am having the same problem.
Installed the latest everything
here is the error message
Compiling sketch…
“C:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0/bin/xtensa-esp32-elf-g++” -DESP_PLATFORM “-DMBEDTLS_CONFIG_FILE=“mbedtls/esp_config.h”” -DHAVE_CONFIG_H -DGCC_NOT_5_2_0=0 -DWITH_POSIX “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/config” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/app_trace” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/app_update” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/asio” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/bootloader_support” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/bt” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/coap” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/console” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/driver” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/esp-tls” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/esp32” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/esp_adc_cal” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/esp_event” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/esp_http_client” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/esp_http_server” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/esp_https_ota” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/esp_ringbuf” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/ethernet” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/expat” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/fatfs” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/freemodbus” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/freertos” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/heap” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/idf_test” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/jsmn” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/json” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/libsodium” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/log” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/lwip” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/mbedtls” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/mdns” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/micro-ecc” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/mqtt” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/newlib” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/nghttp” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/nvs_flash” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/openssl” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/protobuf-c” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/protocomm” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/pthread” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/sdmmc” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/smartconfig_ack” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/soc” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/spi_flash” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/spiffs” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/tcp_transport” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/tcpip_adapter” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/ulp” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/vfs” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/wear_levelling” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/wifi_provisioning” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/wpa_supplicant” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/xtensa-debug-module” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/esp-face” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/esp32-camera” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/esp-face” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/include/fb_gfx” -std=gnu++11 -Os -g3 -Wpointer-arith -fexceptions -fstack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -w -Wno-error=maybe-uninitialized -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-unused-parameter -Wno-unused-but-set-parameter -Wno-missing-field-initializers -Wno-sign-compare -fno-rtti -MMD -c -DF_CPU=240000000L -DARDUINO=10812 -DARDUINO_WIRELESS_STICK -DARDUINO_ARCH_ESP32 “-DARDUINO_BOARD=“WIRELESS_STICK”” “-DARDUINO_VARIANT=“wireless_stick”” -DESP32 -DCORE_DEBUG_LEVEL=5 “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4\cores\esp32” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4\variants\wireless_stick” “-IC:\Users\hugh\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4\libraries\SPI\src” “-IC:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4\libraries\Wire\src” “C:\Users\hugh\AppData\Local\Temp\arduino_build_394001\sketch\OTAA.ino.cpp” -o “C:\Users\hugh\AppData\Local\Temp\arduino_build_394001\sketch\OTAA.ino.cpp.o”
OTAA:90:22: error: ‘LoRaWAN_DEBUG_LEVEL’ was not declared in this scope

uint8_t debugLevel = LoRaWAN_DEBUG_LEVEL;

                  ^

OTAA:93:33: error: ‘ACTIVE_REGION’ was not declared in this scope

LoRaMacRegion_t loraWanRegion = ACTIVE_REGION;

                             ^

Using library ESP32_LoRaWAN-master in folder: C:\Users\hugh\Documents\Arduino\libraries\ESP32_LoRaWAN-master
Using library SPI at version 1.0 in folder: C:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4\libraries\SPI
Using library Wire at version 1.0.1 in folder: C:\Users\hugh\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4\libraries\Wire
exit status 1
‘LoRaWAN_DEBUG_LEVEL’ was not declared in this scope

Can anyone help.

I have the same problem. I have been installed everything from Git, but still have the same:

error: ‘LoRaWAN_DEBUG_LEVEL’ was not declared in this scope
uint8_t debugLevel = LoRaWAN_DEBUG_LEVEL;
^
otaa_test:66:33: error: ‘ACTIVE_REGION’ was not declared in this scope
LoRaMacRegion_t loraWanRegion = ACTIVE_REGION;
^
exit status 1
‘LoRaWAN_DEBUG_LEVEL’ was not declared in this scope