Show the status of internet connection in esp8266 using two LEDs
Here I used a NodeMCU It displays ping value in serial monitor Also if the ping goes below 900ms an led indicates it. Also if it is online(Good ping) it turns on another LED . You can add multiple LEDs for multiple ping levels.
- Download the
<ESP8266Ping.h>
library if you have not downloaded it. link to it is given below