Average ping time giving strange results
Opened this issue · 0 comments
I have a NodeMCU running a program based on your example. Its pinging several different targets using your library.
I have set it to run 5 pings with a time out of 200ms.
One of the targets - 192.168.1.14 - returns long ping times and sometimes misses pings.
Here is one output from pinger.OnEnd
Ping statistics for 192.168.1.14:
Packets: Sent = 5, Received = 4, Lost = 1 (20.00% loss),
Approximate round trip times in milli-seconds:
Minimum = 21ms, Maximum = 142ms, Average = 323.00ms
Destination host data:
IP address: 192.168.1.14
MAC address: 78:32:1b:c6:dd:a9
I dont understand how an average of 323 can be true when the timeout is 200ms?
Sorry, my programming skills are not good enough to analyse or debug your code, so I'm just raising it as an issue.