Ping from ESP8266 towards external IP and measure Latency. - Newbie

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
2BECKHAM2
Posts: 3
Joined: Fri Feb 02, 2018 7:44 am

Ping from ESP8266 towards external IP and measure Latency. - Newbie

Post by 2BECKHAM2 » Tue Mar 27, 2018 4:41 am

Dear Team,

I'm a newbie to micropython and with 1.9.3 in ESP8266 D1 mini. I' able to connect to Wi-Fi network and would like to measure / capture the latency towards external IP for ex: 8.8.8.8 and ftp the details of the avg ping response to another server.

Is this possible in micropython?. Please help.

Thanks in advance.

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Ping from ESP8266 towards external IP and measure Latency. - Newbie

Post by pythoncoder » Tue Mar 27, 2018 6:24 am

As far as I know nobody has written ping code in MicroPython so you'll need to write your own. I can't see any fundamental issues but there is a degree of grunt work involved. A starting point is to read up on the ping protocol e.g. here.
Peter Hinch
Index to my micropython libraries.

2BECKHAM2
Posts: 3
Joined: Fri Feb 02, 2018 7:44 am

Re: Ping from ESP8266 towards external IP and measure Latency. - Newbie

Post by 2BECKHAM2 » Tue Mar 27, 2018 6:46 am

Thanks for the info.

Post Reply