espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.87k stars 7.32k forks source link

esp_mesh_waive_root() stops AP mode of new root (IDFGH-4723) #6530

Closed RajSinghGaur closed 8 months ago

RajSinghGaur commented 3 years ago

Environment: idf version: 4.2 modules: esp32 OS: linux wifi router: mobile hotspot

Description: I flashed two esp32 with waive root node code, let them be N1 and N2, and followed the following prodcedure:

  1. kept mobile near N1 to make it root
  2. waited for the waive function to start
  3. ket the mobile to N2 to make it the new root

Expected Behaviour N2 become the new root and N1 connect to it.

Observed Behaviour N2 becomes the new root but N1 is not able to connect to it. When the N1 node was restarted it connected to the mobile hotspot instead of the root, i.e. N2. This occurance occurs once after 3-5 times running the above procedure.

Code Repository https://github.com/RajSinghGaur/Mesh-Waive-Root.git

Logs Logs for both N1 and N2 are in repository by names N1.txt and N2.txt repectively.

Possible Reasons During waive the AP of N2, i.e. the new root, was not working.

Alvin1Zhang commented 3 years ago

Thanks for reporting.

zhangyanjiaoesp commented 1 year ago

@RajSinghGaur Do you still have this issue ? I have tested with your code locally, but I didn't reproduce your problem.

This occurance occurs once after 3-5 times running the above procedure.

Do you mean after performing a root switch successfully, then restart the board and executing it again?

Alvin1Zhang commented 8 months ago

Thanks for reporting, will close due to short of feedback, feel free to reopen with more updates.