fl4p / batmon-ha

Add-on for Home Assistant to connect JK, JBD, Daly, ANT, SOK and Supervolt BMS via Bluetooth
MIT License
246 stars 53 forks source link

Bleak support for a MicroPython port? (e.g. for ESP32) #179

Closed 7wells closed 6 months ago

7wells commented 6 months ago

Hi Fabian!

Understanding that this is rather an issue tracker, sorry about my note here.

I asked at micropython discussions if they knew about a way to port bleak from Python to MicroPython, and here's their answer:

There's no direct support for bleak or its exact API as such. Micropython has aioble for asyncio Bluetooth: https://github.com/micropython/micropython-lib/tree/master/micropython/bluetooth/aioble

For the higher-level bluetooth aioble library, please refer to this: https://github.com/micropython/micropython-lib/tree/master/micropython/bluetooth/aioble

As I am no programmer and know little of Python/MicroPython, my question there and here, too, might not be helpful. In that case, I kindly ask you to accept my apologies. 😊

If, however, you see a way that the provided information might be helpful, please let me know. Thank you so much. ❤️

I tag @snipah here as they might be interested in this, too.

fl4p commented 6 months ago

please discuss at the old issue

7wells commented 6 months ago

Ok, I guess you meant this one? https://github.com/fl4p/batmon-ha/issues/34

PS: A Happy New Year! :)