espressif / esp-mdf

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

Taking long time while reconnect #240

Open ghost opened 3 years ago

ghost commented 3 years ago

Hello Dev, I'm stuck on a project where I'm working with Wifi_Mesh_Mqtt in ESP32 WROOM-32D. the device taking such a long time while reconnection in mesh and publishing the data. I'm using ESP_IDF v3.3.2 in windows and the device is on battery so while connecting it's taking 15 to 25 sec. ESP_MESH_LOG.txt

here you can see the log while reconnecting and suggest me something to resolve the issue and let me know if you need more info from my side

esp-lqq commented 3 years ago

Hello ShekharSuthar : Since the wifi mesh device needs to form a mesh network before connecting to the external network, this process will consume some time. After the Mesh network is completed, the root node device can obtain IP and connect to MQTT. From your description, your main time is on this group of websites.

  1. If the root node is fixed, the time of the root node can be faster.
  2. If the root node is not fixed, the mesh network networking time cannot be accurately estimated and accelerated.