ESP-Mesh-Lite Network
Prerequisites:
ESP-IDF development environment is set up.
Build and Run
Step 1: Prepare the Environment
Step 2: Clone ESP-Mesh-Lite SDK
This project uses ESP-Mesh-Lite SDK locked to commit 1a27d19.
Step 3: Choose No-Router Example
The no_router example in the ESP-Mesh-Lite repository demonstrates how to create a mesh network without a traditional Wi-Fi router. Devices communicate directly, forming a decentralized structure.
Step 4: Set Target for No-Router Example
Step 5: Configure the Device
A device’s role is set using CONFIG_MESH_ROOT, it can be configured in menuconfig Example Configuration -> Root Device:
If Enabled (
CONFIG_MESH_ROOT=y), the device creates a SoftAP and becomes the root node.If Disabled (
CONFIG_MESH_ROOT=n), the device joins an existing network as a STA while also creating a SoftAP for other devices, making it an intermediate node that extends the mesh.
SoftAP settings CONFIG_BRIDGE_SOFTAP_SSID and CONFIG_BRIDGE_SOFTAP_PASS are configured in menuconfig Component config -> Bridge Configuration -> The interface used to provide network data fowarding for other devices -> SoftAP Config.
The following settings are also available:
Component config -> ESP Wi-Fi Mesh Lite
Step 6: Build
Step 7: Flash
Provisioning
Provisioning example: https://github.com/espressif/esp-mesh-lite/tree/master/examples/mesh_wifi_provisioning
Provisioning Library: Provisioning library provides a mechanism to send network credentials and/or custom data to ESP32 (or its variants like S2, S3, C3, etc.) or ESP8266 devices.
This repository contains the source code for the companion Android app for this provisioning mechanism: https://github.com/espressif/esp-mesh-lite/tree/feature/zero_provisioning_android?tab=readme-ov-file#features