mqtt ready to be implemented
This commit is contained in:
13
test1/src/bin/mqtt_docs.md
Normal file
13
test1/src/bin/mqtt_docs.md
Normal 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
|
||||
Reference in New Issue
Block a user