esp-mesh-lite icon indicating copy to clipboard operation
esp-mesh-lite copied to clipboard

ESP-Mesh Lite with MQTT for All Nodes and Coordinated Power Saving (IDFGH-15126) (AEGHB-1052)

Open gajananmaske1234 opened this issue 8 months ago • 1 comments

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

gajananmaske1234 avatar Apr 17 '25 09:04 gajananmaske1234

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

nopnop2002 avatar Apr 17 '25 10:04 nopnop2002