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

Compilation issue in Tasmota ESP32 build with BLE and OpenTherm enabled #34

Open
altserg opened this issue May 27, 2021 · 0 comments
Open

Comments

@altserg
Copy link

altserg commented May 27, 2021

Hi all,

I'm trying to build the Tasmota firmware with both BLE and Open Therm enabled:
#define USE_OPENTHERM
#undef USE_IBEACON
#define USE_BLE_ESP32 // Enable new BLE driver
#define USE_MI_ESP32 // (ESP32 only) Add support for ESP32 as a BLE-bridge (+9k2 mem, +292k flash)

I got following error output. I was trying to fix it with the namespaces, but failed. Any suggestions how to avoid the naming conflict ?

Compiling .pio/build/tasmota32/src/tasmota.ino.cpp.o
In file included from /workspace/Tasmota/tasmota/xsns_69_opentherm.ino:24:0:
lib/lib_div/OpenTherm-0.9.0/src/OpenTherm.h:30:20: error: redeclaration of 'READ'
READ = READ_DATA, // for backwared compatibility
^
In file included from lib/libesp32_div/NimBLE-Arduino/src/NimBLEService.h:24:0,
from lib/libesp32_div/NimBLE-Arduino/src/NimBLEServer.h:26,
from lib/libesp32_div/NimBLE-Arduino/src/NimBLEDevice.h:35,
from /workspace/Tasmota/tasmota/xdrv_79_esp32_ble.ino:148:
lib/libesp32_div/NimBLE-Arduino/src/NimBLECharacteristic.h:29:5: note: previous declaration 'NIMBLE_PROPERTY READ'
READ = BLE_GATT_CHR_F_READ,
^
In file included from /workspace/Tasmota/tasmota/xsns_69_opentherm.ino:24:0:
lib/lib_div/OpenTherm-0.9.0/src/OpenTherm.h:32:20: error: redeclaration of 'WRITE'
WRITE = WRITE_DATA, // for backwared compatibility
^
In file included from lib/libesp32_div/NimBLE-Arduino/src/NimBLEService.h:24:0,
from lib/libesp32_div/NimBLE-Arduino/src/NimBLEServer.h:26,
from lib/libesp32_div/NimBLE-Arduino/src/NimBLEDevice.h:35,
from /workspace/Tasmota/tasmota/xdrv_79_esp32_ble.ino:148:
lib/libesp32_div/NimBLE-Arduino/src/NimBLECharacteristic.h:33:5: note: previous declaration 'NIMBLE_PROPERTY WRITE'
WRITE = BLE_GATT_CHR_F_WRITE,

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

1 participant