espressif / esp-mdf

Espressif Mesh Development Framework, limited maintain, recommend to use https://github.com/espressif/esp-mesh-lite
Other
774 stars 253 forks source link

If mesh_type is set to node, it will still be elected as root #272

Open Nepenthes opened 2 years ago

Nepenthes commented 2 years ago

Set the device mesh_type to node. After the networking is complete, power off root. After node loses connection for a period of time, it will automatically participate in the election to become root; According to the MDF guidelines, only devices whose mesh_type is idle should have the right to become root; The attached log is a examples of esp-mdf-v1.0 development_kit/light, intact, tested with ESP-Mesh APP. 基于MDF light例程的log_20211223.txt Line 164: Mesh configuration is complete, mesh_type is node; Line 201: The node is connected to root, and the networking is complete; Line 676: Power off the current root, node loses connection; Line 854: node is selected as the new root;

Nepenthes commented 2 years ago

The document also does not clearly state whether node has the ability to run for root, but our current requirement is that node can only forward data but not run for root, so I would like to ask what can be done to meet this demand.