rando-calrissian / esp32_xiaomi_mi_2_hass

Xiaomi Mi Body Composition Scale integration into Home Assistant using an ESP32 as a BLE to Wifi bridge with Appdaemon processing the data.
MIT License
22 stars 11 forks source link

compat broken with newer BLE lib version #5

Closed ghost closed 3 years ago

ghost commented 3 years ago

https://github.com/espressif/arduino-esp32/issues/4627#issuecomment-751400018

The presence of a callback during the BLE scan prevents the creation of the devices vector. The correct device must be selected and returned to the calling loop instead of relying on the vector containing all BLE devices. I'll see if I can tweak the code but I'm a noob with Arduino stuff.