ESP-Mesh-Lite and iot-reference-esp32 / esp-aws-iot
Posted: Mon Nov 04, 2024 12:25 am
I'm attempting to modify the iot-reference-esp32 project to use esp-mesh-lite. I got iot-reference-esp32 working on a ESP32-C6-DevKitC-1 V1.2. I then attempted to modify that project to use esp-mesh-lite. With a single node, the mesh-lite project works fine. However when I turn on 2 nodes, the mesh is created but the network connections keep closing and reconnecting. I verified that it does create a mesh - I can see that one of the nodes is Level 1 with one child and the other is Level 2. But the constant network disconnection means messages are dropped and delayed.
Below is a typical output as one of the nodes publishes to a topic once every 5 seconds. I see the same behavior with QoS 0 or 1. Please let me know if you have any ideas for me try, or how to get additional debugging information out. Thank you.
Below is a typical output as one of the nodes publishes to a topic once every 5 seconds. I see the same behavior with QoS 0 or 1. Please let me know if you have any ideas for me try, or how to get additional debugging information out. Thank you.
I (40633) core_mqtt_agent_manager: TLS connection established.
I (40993) coreMQTT: MQTT connection established with the broker.
I (40993) core_mqtt_agent_manager: Session present: 1
I (40993) core_mqtt_agent_manager: coreMQTT-Agent connected.
I (40993) mqtt_pub_network_info: coreMQTT-Agent connected.
E (42383) network_transport: Connection closed
E (42383) coreMQTT: Call to receiveSingleIteration failed. Status=MQTTRecvFailed
I (42393) core_mqtt_agent_manager: coreMQTT-Agent disconnected.
I (42393) mqtt_pub_network_info: coreMQTT-Agent disconnected. Preventing coreMQTT-Agent commands from being enqueued.
I (42423) core_mqtt_agent_manager: TLS connection was disconnected.
I (43473) core_mqtt_agent_manager: TLS connection established.
I (43963) coreMQTT: MQTT connection established with the broker.
I (43963) core_mqtt_agent_manager: Session present: 1
I (43963) core_mqtt_agent_manager: coreMQTT-Agent connected.
I (43973) mqtt_pub_network_info: coreMQTT-Agent connected.
I (43983) mqtt_pub_network_info: Sending publish request to agent with message "{"mesh-info":{ "level": "2","children":{}}}" on topic "/f0:f5:bd:0e:5b:e8/networkinfo"
I (43993) mqtt_pub_network_info: Task networkinfo waiting for publish 0 to complete.
I (44093) mqtt_pub_network_info: Rx'ed completion notification for QoS0 publish from Tx to /f0:f5:bd:0e:5b:e8/networkinfo (P5:F0).
E (45193) network_transport: Connection closed
E (45193) coreMQTT: Call to receiveSingleIteration failed. Status=MQTTRecvFailed
I (45193) core_mqtt_agent_manager: coreMQTT-Agent disconnected.
I (45193) mqtt_pub_network_info: coreMQTT-Agent disconnected. Preventing coreMQTT-Agent commands from being enqueued.
I (45223) core_mqtt_agent_manager: TLS connection was disconnected.
I (46293) core_mqtt_agent_manager: TLS connection established.
I (46733) coreMQTT: MQTT connection established with the broker.