An esp-idf component for the Homie convention.
This is alpha-level software. Pull requests are welcome! Here is where we're at:
I believe a minimalist library is a better fit for the ESP-IDF ecosystem rather than a framework. I don't plan to include a captive portal, nor an inversion of program control. The scope of this library will be to manage the MQTT connection using the Homie convention, handle OTA, and little else.
Clone this component to ESP-IDF project (as submodule):
git submodule add https://github.com/craftmetrics/esp32-homie.git components/esp32-homie
https://github.com/craftmetrics/esp32-homie-example
OTA works according to the following scheme:
homie_init
(it's off by default)./$implementation/ota/url
containing a URL to the new firmware./$implementation/ota/status
When remote logging is enabled, all calls to ESP_LOG*() are published to ./log
.
To enable remote logging, send true
to ./$implementation/logging
. To disable, send false
.
Note that the default logger uses ANSI terminal colors in its log output, you may want to set CONFIG_LOG_COLORS=n
in sdkconfig
to disable this.