Skip to content

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

@gajananmaske1234

Description

@gajananmaske1234

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

Activity

changed the title [-]ESP-Mesh Lite with MQTT for All Nodes and Coordinated Power Saving[/-] [+]ESP-Mesh Lite with MQTT for All Nodes and Coordinated Power Saving (IDFGH-15126)[/+] on Apr 17, 2025
nopnop2002

nopnop2002 commented on Apr 17, 2025

@nopnop2002

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

changed the title [-]ESP-Mesh Lite with MQTT for All Nodes and Coordinated Power Saving (IDFGH-15126)[/-] [+]ESP-Mesh Lite with MQTT for All Nodes and Coordinated Power Saving (IDFGH-15126) (AEGHB-1052)[/+] on Apr 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @nopnop2002@gajananmaske1234

        Issue actions

          ESP-Mesh Lite with MQTT for All Nodes and Coordinated Power Saving (IDFGH-15126) (AEGHB-1052) · Issue #163 · espressif/esp-mesh-lite