ESP32_LoRaWAN icon indicating copy to clipboard operation
ESP32_LoRaWAN copied to clipboard

BLE LoraWan Bridge Issue

Open georaura opened this issue 4 years ago • 3 comments

I need develop a Bluetooth - LoraWan bridge, but when i insert a default ESP32 Bluetooth library (BluetoothSerial.h or BLEDevice.h), I have compilation conflicts with ESP32_LoRaWAN.h library. Any suggest?

georaura avatar Mar 04 '20 17:03 georaura

Conflicts where? Can you post the compile results?

kkalbaugh avatar Mar 04 '20 17:03 kkalbaugh

The problem is with aes.c Library: The compiled results is:


libraries\ESP32_LoRaWAN-master\aes.c.o:C:\Users\graura\Documents\Arduino\libraries\ESP32_LoRaWAN-master\src/aes.c:514: first defined here

C:\Users\graura\AppData\Local\Arduino15\packages\Heltec-esp32\hardware\esp32\0.0.4/tools/sdk/lib\libbt.a(aes.o): In function `aes_cbc_encrypt’:

aes.c:(.text.aes_cbc_encrypt+0x0): multiple definition of `aes_cbc_encrypt’

libraries\ESP32_LoRaWAN-master\aes.c.o:aes.c:(.text.aes_cbc_encrypt+0x0): first defined here collect2.exe: error: ld returned 1 exit status

Conflicting functions are: (aes_set_key and aes_cbc_encrypt).

georaura avatar Mar 04 '20 20:03 georaura

To reproduce de error, try to include these libraries to your .ino code:

#include <ESP32_LoRaWAN.h> #include "Arduino.h" #include <BLEDevice.h>

georaura avatar Mar 04 '20 20:03 georaura