Closed giovanne123 closed 1 year ago
No further investigation needed, I will add the change to my special usecase for the little EB3A.
@giovanne123
advertisedDevice.getName().compare(settings.bluetti_device_id)
doesn't work for me either. It's not only your device which has problem connecting.
https://github.com/mariolukas/Bluetti_ESP32_Bridge/issues/31
Compiled lastest code from today (FW in WebUI 0.1.0), still no bluetooth connection for EB3A without:
BTooth.cpp: Line 50: from:
if (advertisedDevice.haveServiceUUID() && advertisedDevice.isAdvertisingService(serviceUUID) && advertisedDevice.getName().compare(settings.bluetti_device_id)) {
to:if (advertisedDevice.haveServiceUUID() && advertisedDevice.isAdvertisingService(serviceUUID) && (strcmp(advertisedDevice.getName().c_str(),settings.bluetti_device_id)==0) ) {
Serial.out:
No more output, not connected...
platformio.ini
PS C:\Users\Bluetti_ESP32_Bridge> pio pkg update Resolving esp32dev dependencies... Already up-to-date.
Had same behaviour also before in Arduino IDE
With the change implemented, it is connecting and reading: