Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLE LoraWan Bridge Issue #35

Open
georaura opened this issue Mar 4, 2020 · 3 comments
Open

BLE LoraWan Bridge Issue #35

georaura opened this issue Mar 4, 2020 · 3 comments

Comments

@georaura
Copy link

georaura commented Mar 4, 2020

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?

@kkalbaugh
Copy link

Conflicts where? Can you post the compile results?

@georaura
Copy link
Author

georaura commented Mar 4, 2020

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
Copy link
Author

georaura commented Mar 4, 2020

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants