craftmetrics / esp32-homie

An esp-idf component for the Homie convention
MIT License
27 stars 9 forks source link

Remote logging can exhaust stack memory #1

Open lukecyca opened 5 years ago

lukecyca commented 5 years ago

The remote logger uses a logging function that calls homie_publish(). If the logger is invoked from a task with a small stack memory, it can easily exhaust it and crash.

It would be better if the logger passed the message over a queue, and the publishing was done centrally.