HelTecAutomation / ESP32_LoRaWAN

Transplanted from Semtech LoRaWAN(https://github.com/Lora-net/LoRaMac-node) protocol to "ESP32 + Arduino" platform. Use RTC, support deep sleep, only working with ESP32 + LoRa boards made by HelTec Automation(TM). Need a unique license to use it.
335 stars 108 forks source link

OTAA sample doesn't compile #14

Open DeveloppeurPascal opened 4 years ago

DeveloppeurPascal commented 4 years ago

/Users/pprem/Documents/Arduino/libraries/ESP32_LoRaWAN-master/examples/OTAA/OTAA.ino: In function 'void loop()': OTAA:64:28: error: no matching function for call to 'LoRaClass::DeviceStateInit()' LoRa.DeviceStateInit(); ^ In file included from /Users/pprem/Documents/Arduino/libraries/ESP32_LoRaWAN-master/examples/OTAA/OTAA.ino:35:0: /Users/pprem/Documents/Arduino/libraries/ESP32_LoRaWAN-master/src/LoRa.h:87:8: note: candidate: void LoRaClass::DeviceStateInit(DeviceClass_t) void DeviceStateInit(DeviceClass_t CLASS); ^ /Users/pprem/Documents/Arduino/libraries/ESP32_LoRaWAN-master/src/LoRa.h:87:8: note: candidate expects 1 argument, 0 provided OTAA:94:24: error: 'IsLowPowerOn' was not declared in this scope LoRa.DeviceSleep(IsLowPowerOn,DebugLevel); ^ exit status 1 no matching function for call to 'LoRaClass::DeviceStateInit()'

DestinyFxxker commented 4 years ago

Please update the library to the latest version.