We are using Wireless sticks as controllers and node for a Lorawan network. For this, we use the esp32_lorawan library (#include <ESP32_LoRaWAN.h>); we also intend to use the heltec library to use the small display (#include <Heltec.h>).
However, apparently there is a conflict between this two libraries we have not been able to resolve:
‘DeviceClass_t’ does not name a type
In file included from /xx/xx/Arduino/Lora-XXXXXXXX/Lora-XXXXXXXX.ino:35:0:
/xx/xx/Arduino/libraries/Heltec_ESP32_Dev-Boards/src/heltec.h:28:5: error: ‘LoRaClass’ does not name a type
exit status 1
Error compiling for board Wireless Stick.
For a program that work fine loading only either heltec.h or esp32_lorawan.h; i.e. the program compile and works if I load only the heltec.h library (and obviously, commenting out the references to lorawan, it will have display but not lorawan comms) or if I load only the esp32_lorawan (and commenting the displat directives out, it will have lorawan but no display).
We already have tried to change the loading order, to comment out references to Lora in heltec.h, and to put references to lora in a single file and then referencing this file in both libraries.