Ping to ESP32 with different results, between station_example and other examples which use example_connect component
Posted: Fri Jun 02, 2023 12:51 pm
So I have been testing the code for a project of mine, that has a wifimanager developed by me, and uses othere components as mqtt and https. For some reason (that is not important in this topic) the https didn't work in my code, so I decided to test the https simple example, to see what might be going wrong in my code.
I then noticed that the loading of the simple https webpage was way faster that in my code. I then noticed that my laptop was able to reach faster to the esp32 (using ping to the IP addr) when using the https example, than when using my code with wifimanager (When using my code, the Host was unreachable for several seconds or even minutes, but would eventually be able to reach it).
So I started searching in my code for a bug or a misconfiguration, that I may have done, but I noticed that the example_connect function would use another type of netif configuration procedure than the recommended in the esp docs.
So I decided to test between the "wifi getting started station example" and the "https_server simple example"
The difference between both of them is that the wifi station example configures everything as stated in the docs and the other one uses the connect_example function.
In the attached picture you can see that the first portion the host is being reached, and quite fast, and after the upload time (time=3354ms), the time to reach the host drops noticeably Why is this? Is there anything that can be changed to have the host respond faster to icmp requests?
I then noticed that the loading of the simple https webpage was way faster that in my code. I then noticed that my laptop was able to reach faster to the esp32 (using ping to the IP addr) when using the https example, than when using my code with wifimanager (When using my code, the Host was unreachable for several seconds or even minutes, but would eventually be able to reach it).
So I started searching in my code for a bug or a misconfiguration, that I may have done, but I noticed that the example_connect function would use another type of netif configuration procedure than the recommended in the esp docs.
So I decided to test between the "wifi getting started station example" and the "https_server simple example"
The difference between both of them is that the wifi station example configures everything as stated in the docs and the other one uses the connect_example function.
In the attached picture you can see that the first portion the host is being reached, and quite fast, and after the upload time (time=3354ms), the time to reach the host drops noticeably Why is this? Is there anything that can be changed to have the host respond faster to icmp requests?