Hi all,
I’m currently working on a DIY smart thermostat project using RT-Thread on an STM32 board. I’m able to handle temperature sensing and simple relays fine, but now I want to add Wi-Fi connectivity and MQTT support to integrate it with Home Assistant. I’m a bit unsure how best to manage multiple tasks like sensor polling, display updates, and MQTT messaging without running into timing issues or blocking calls.
Has anyone here built something similar using RT-Thread? Would love to hear how you structured your threads or used message queues/events for real-time responsiveness. Also curious which Wi-Fi modules play nicely with RT-Thread and are relatively easy to get up and running.
Here are a few resources I’ve been looking at:
https://www.youtube.com/watch?v=5v6zZLt-e-4
https://www.theengineeringprojects.com/2023/04/iot-based-smart-home-automation-using-esp32.html
https://www.rt-thread.io/document/site/#/getting_started/connectivity/mqtt/mqtt
https://www.emqx.io/blog/build-smart-home-with-mqtt-and-home-assistant