You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dear all,
I have just tested the Ping.ino example that comes with the library. The AvgResponseTime is calculated incorrectly. If you calculate the correct average from the actual response times by hand, you will see that in the example the average is calculated by the number of requests raised to the power of 2 (Tested with 4 and 5 requests).
11:45:30.798 -> Pinging technologytourist.com
11:45:30.842 -> Reply from 76.223.54.146: bytes=32 time=11ms TTL=249
11:45:31.817 -> Reply from 76.223.54.146: bytes=32 time=13ms TTL=249
11:45:32.810 -> Reply from 76.223.54.146: bytes=32 time=9ms TTL=249
11:45:33.798 -> Reply from 76.223.54.146: bytes=32 time=8ms TTL=249
11:45:34.783 -> Ping statistics for 76.223.54.146:
11:45:34.816 -> Packets: Sent = 4, Received = 4, Lost = 0 (0.00% loss),
11:45:34.849 -> Approximate round trip times in milli-seconds:
11:45:34.916 -> Minimum = 8ms, Maximum = 13ms, Average = 2.56ms
Regards
-svesaja
The text was updated successfully, but these errors were encountered:
Dear all,
I have just tested the Ping.ino example that comes with the library. The AvgResponseTime is calculated incorrectly. If you calculate the correct average from the actual response times by hand, you will see that in the example the average is calculated by the number of requests raised to the power of 2 (Tested with 4 and 5 requests).
11:45:30.798 -> Pinging technologytourist.com
11:45:30.842 -> Reply from 76.223.54.146: bytes=32 time=11ms TTL=249
11:45:31.817 -> Reply from 76.223.54.146: bytes=32 time=13ms TTL=249
11:45:32.810 -> Reply from 76.223.54.146: bytes=32 time=9ms TTL=249
11:45:33.798 -> Reply from 76.223.54.146: bytes=32 time=8ms TTL=249
11:45:34.783 -> Ping statistics for 76.223.54.146:
11:45:34.816 -> Packets: Sent = 4, Received = 4, Lost = 0 (0.00% loss),
11:45:34.849 -> Approximate round trip times in milli-seconds:
11:45:34.916 -> Minimum = 8ms, Maximum = 13ms, Average = 2.56ms
Regards
-svesaja
The text was updated successfully, but these errors were encountered: