ESP-Mesh Lite with MQTT for All Nodes and Coordinated Power Saving (IDFGH-15126) (AEGHB-1052)
Is your feature request related to a problem?
Hi,
I'm working on a product using ESP-Mesh Lite where:
All mesh nodes, including the root, should connect to the internet and publish/subscribe via MQTT (or similar protocol).
We require power-saving mechanisms, where all slave nodes go into sleep mode and wake up simultaneously for data sync.
Questions:
Is it possible for non-root nodes in ESP-Mesh Lite to access the internet directly, or should the root node proxy all MQTT traffic?
What is the recommended approach to coordinated wake-up of all devices? Is there any example project using synchronized sleep/wake logic in ESP-Mesh Lite?
Thanks in advance
Describe the solution you'd like.
No response
Describe alternatives you've considered.
No response
Additional context.
No response
Is it possible for non-root nodes in ESP-Mesh Lite to access the internet directly, or should the root node proxy all MQTT traffic?
It is possible.
Read this.
Each node in ESP-Mesh-Lite enables the LWIP stack and can be treated as a device directly connected to the router, which can independently invoke network interfaces such as Socket, MQTT, HTTP, etc., on the application layer.
MESH-LITE uses this esp-iot-bridge. Although non-root nodes appear to have direct access to the Internet, they actually go through the root node. This makes it possible to create a wide area network.
Here is example. https://github.com/nopnop2002/esp-mesh-lite-examples/tree/main/mesh_mqtt_client
Is there any example project using synchronized sleep/wake logic in ESP-Mesh Lite?
The esp-iot-bridge does not have an inherent WakeUp mechanism.
The wake-up sources follow this, but none of them are suitable for wide area networks. https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/system/sleep_modes.html#wakeup-sources