libretiny-eu / libretiny

PlatformIO development platform for IoT modules
http://docs.libretiny.eu/
MIT License
414 stars 62 forks source link

BK7231 MQTT #59

Open catalin2402 opened 1 year ago

catalin2402 commented 1 year ago

MQTT won't compile for BK7231, Can't compile https://github.com/OttoWinter/async-mqtt-client, maybe we should fork it and change #ifdef ESP32 in https://github.com/OttoWinter/async-mqtt-client/blob/master/src/AsyncMqttClient.hpp

kuba2k2 commented 1 year ago

MQTT should work now, starting with https://github.com/kuba2k2/libretuya-esphome/commit/65864298a3afcf951d6a5b6329d273b3f40c6457.

dskw commented 11 months ago

I'm running into the same problem with a cb3s board. I'm using the current ESPHome addon in HA and even tried directly listing the library from your linked commit, but it still complains about being unable to find AsyncTCP during compilation.

Do I have to switch to any dev versions of ESP home or bk72xx/libretiny for this to work? (your post is from January, so I hope not)

Configuration yaml: bkwindow1.yaml.txt

Failed compile log: logs_bkwindow1_run.txt

Any advice is greatly appreciated.

olemmela commented 11 months ago

@dskw it seems esphome/AsyncTCP-esphome dependency is missing. Adding following lines to config should force it to be downloaded

esphome:
  libraries:
    - "esphome/AsyncTCP-esphome" 
dskw commented 11 months ago

Ahh I tried that before but did not add the esphome prefix/suffix! That works indeed, thank you @olemmela !