working send/receive to the broker

This commit is contained in:
Priec
2025-10-05 21:19:37 +02:00
parent 73cbf7f912
commit b4e86bded6
4 changed files with 168 additions and 67 deletions

View File

@@ -1,13 +0,0 @@
# 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