mqtt ready to be implemented

This commit is contained in:
Priec
2025-09-29 22:52:48 +02:00
parent 1f7d35a6d3
commit c77f1f7696
4 changed files with 131 additions and 6 deletions

View File

@@ -0,0 +1,13 @@
# MQTT Implementation Notes
* WiFi connection runs in a separate task with auto-reconnect functionality
* Network stack operates in a dedicated packet processing task
* MQTT uses TCP socket connection (MqttClient wraps this socket)
* ClientConfig specifies: MQTT version, QoS levels, client ID
* Standard flow: connect_to_broker() → send_message() or subscribe()
## Implementation:
1. Perform DNS lookup for broker hostname
2. Establish TCP socket connection
3. Create MqttClient with configuration
4. Implement connect, publish, and subscribe logic