On development you often point to bugs and errors. To make it easier for us to find and fix them, we have integrated a debug mode into the Regenfass. This mode can be activated in the config file. The debug mode is only active if the Regenfass is started with the parameter --debug
or -d
. The debug mode is deactivated by default.
src/main.cpp:2:10: fatal error: heltec.h: No such file or directory
Add heltec.h
as dependency to your platformio.ini
file:
[env:heltec_wifi_lora_32_V2]
platform = espressif32
board = heltec_wifi_lora_32_V2
framework = arduino
lib_deps = heltec/ESP32_LoRaWAN@^1.1.1
'LoRaWAN_DEBUG_LEVEL' was not declared in this scope
'ACTIVE_REGION' was not declared in this scope
'RST_LoRa' was not declared in this scope
'DIO0' was not declared in this scope
'DIO1' was not declared in this scope
'WIFI_LED' was not declared in this scope
'LoRa_LED' was not declared in this scope
More information here
#define LoRaWAN_DEBUG_LEVEL 1
#define ACTIVE_REGION LORAWAN_REGION_EU868
#define RST_LoRa 14
#define DIO0 26
#define DIO1 33
#define WIFI_LED 25
#define LoRa_LED 18
Custom board definition:
{
"build": {
"core": "esp32",
"extra_flags": "-DLoRaWAN_DEBUG_LEVEL=1 -DACTIVE_REGION=LORAWAN_REGION_EU868 -DRST_LoRa=14 -DDIO0=26 -DDIO1=33 -DWIFI_LED=25 -DLoRa_LED=18",
"f_cpu": "240000000L",
"mcu": "esp32",
"variant": "heltec_wifi_lora_32_V2"
},
"frameworks": [
"arduino"
],
"name": "Heltec WiFi LoRa 32",
"upload": {
"maximum_ram_size": 327680,
"maximum_size": 1310720,
"protocol": "espota",
"require_upload_port": true,
"speed": 921600
},
"url": "https://heltec.org/project/wifi-lora-32/",
"vendor": "Heltec Automation",
"version": "1.0.0"
}
More information see here. For details, see existing boards as examples, available under ~/.platformio/platforms/espressif32/boards/
.
error: 'class McuClass' has no member named 'begin'