OVMS3-idf/examples/mesh/manual_networking
David Cermak 31b2702387 esp_netif, examples: esp_netif_init() moved into ESP_ERROR_CHECK()
esp_netif_init() returns standard esp_err_t error code (unlike tcpip_adapter init), so shall be checked for the return value
Also to make the initialization code more consistent.
2019-12-17 09:07:49 +01:00
..
main esp_netif, examples: esp_netif_init() moved into ESP_ERROR_CHECK() 2019-12-17 09:07:49 +01:00
CMakeLists.txt asio: examples renamed to have consistent binary names when build in make and CMake 2018-10-17 15:00:26 +02:00
Makefile mesh: add manual networking function 2018-05-23 18:09:12 +08:00
README.md build system: Use CMake-based build system as default when describing commands 2019-07-08 17:31:27 +10:00

Mesh Manual Networking Example

ESP-MESH provides the function of self-organized networking, but if users disable this function on one node, users must designate a parent for this node.

This example demonstrates how to scan a list of parent candidates, choose an appropriate parent and set as the parent of this node.

If no parent is found through this scan, enable the self-organized function to let the ESP-MESH handle it by itself.

Open project configuration menu (idf.py menuconfig) to configure the mesh network channel, router SSID, router password and mesh softAP settings.

When the mesh network is established and if you happen to run this example on ESP-WROVER-KIT boards, the RGB light indicator will show you on which layer devices are. The pink reprents root; the yellow reprents layer 2; the red reprents layer 3; the blue reprents layer 4; the green reprents layer 5; the white reprents layer greater than 5.