src/lorawan.cpp: In function 'void startup_lorawan()':
src/lorawan.cpp:66:54: error: 'DR_SF12' was not declared in this scope
LMIC_setupChannel(0, 868100000, DR_RANGE_MAP(DR_SF12, DR_SF7), BAND_CENTI); // g-band
^
.pio/libdeps/esp32/MCCI LoRaWAN LMIC library/src/lmic/lmic.h:680:50: note: in definition of macro 'DR_RANGE_MAP'
#define DR_RANGE_MAP(drlo,drhi) (((u2_t)0xFFFF<<(drlo)) & ((u2_t)0xFFFF>>(15-(drhi))))
^
src/lorawan.cpp:66:72: error: 'BAND_CENTI' was not declared in this scope
LMIC_setupChannel(0, 868100000, DR_RANGE_MAP(DR_SF12, DR_SF7), BAND_CENTI); // g-band
^
In file included from .pio/libdeps/esp32/MCCI LoRaWAN LMIC library/src/arduino_lmic.h:26:0,
from .pio/libdeps/esp32/MCCI LoRaWAN LMIC library/src/lmic.h:28,
from src/lorawan.hpp:5,
from src/lorawan.cpp:1:
src/lorawan.cpp:67:63: error: 'DR_SF7B' was not declared in this scope
LMIC_setupChannel(1, 868300000, DR_RANGE_MAP(DR_SF12, DR_SF7B), BAND_CENTI); // g-band
^
.pio/libdeps/esp32/MCCI LoRaWAN LMIC library/src/lmic/lmic.h:680:79: note: in definition of macro 'DR_RANGE_MAP'
#define DR_RANGE_MAP(drlo,drhi) (((u2_t)0xFFFF<<(drlo)) & ((u2_t)0xFFFF>>(15-(drhi))))
^
src/lorawan.cpp:74:54: error: 'DR_FSK' was not declared in this scope
LMIC_setupChannel(8, 868800000, DR_RANGE_MAP(DR_FSK, DR_FSK), BAND_MILLI); // g2-band
^
.pio/libdeps/esp32/MCCI LoRaWAN LMIC library/src/lmic/lmic.h:680:50: note: in definition of macro 'DR_RANGE_MAP'
#define DR_RANGE_MAP(drlo,drhi) (((u2_t)0xFFFF<<(drlo)) & ((u2_t)0xFFFF>>(15-(drhi))))
^
src/lorawan.cpp:74:71: error: 'BAND_MILLI' was not declared in this scope
LMIC_setupChannel(8, 868800000, DR_RANGE_MAP(DR_FSK, DR_FSK), BAND_MILLI); // g2-band
^
Compiling .pio/build/esp32/lib200/MCCI LoRaWAN LMIC library/lmic/lmic_compliance.c.o
Compiling .pio/build/esp32/lib200/MCCI LoRaWAN LMIC library/lmic/lmic_eu868.c.o
Compiling .pio/build/esp32/lib200/MCCI LoRaWAN LMIC library/lmic/lmic_eu_like.c.o
In file included from src/gps.hpp:5:0,
from src/main.cpp:8:
src/locations.h:10:17: warning: 'geofence' defined but not used [-Wunused-variable]
static Geofence geofence[] = {
^
*** [.pio/build/esp32/src/lorawan.cpp.o] Error 1
Having problems compiling it: