Supported Targets | ESP32 | ESP32-C2 | ESP32-C3 | ESP32-S2 | ESP32-S3 |
---|
This example will introduce how to implement a device connection to a remote external server based on Mesh-Lite. Different from ESP-WIFI-MESH, each device in the Mesh-Lite network can independently access the external network.
This example implements the function of device data transmission in the mesh network to the TCP server.
It is recommended to compile with esp-idf version 4.4
Enter idf.py menuconfig
, and configure the followings under the submenu "Example Configuration".
CMake:
Shell
idf.py erase_flash flash monitor -b 921600 -p /dev/ttyUSBx
ESP-WIFI-MESH devices send the real-time device status to the TCP server at an interval of three seconds.
To create a project from this example, run:
idf.py create-project-from-example "espressif/mesh_lite=0.6.0:mesh_local_control"