jeelabs / esp-link

esp8266 wifi-serial bridge, outbound TCP, and arduino/AVR/LPC/NXP programmer
Other
2.82k stars 720 forks source link

ESP Connection status #475

Open satyagupta opened 4 years ago

satyagupta commented 4 years ago

I am using ESP12 with Atmega to communicate with controller. There are 2 ESP12,

ESP connected with Atmega is in AP mode and ESP connected with controller is in STA mode (it is configured to connect to AP automatically on start up)

What i want is to be able to show the status of the connection between atmega and Controller (led is green if its connected red if not)

Is this possible or do we have an option where any of the GPIO pin sets to HIGH/LOW when a node is connected to ESP.

baervers23 commented 4 years ago

My Ideas:

1) let the esp ping each other? esp(atmega) ping ip from esp2(?). if esp2 is reachable greenLED high else redLED high esp2(=) dont need to ping, if esp(atmega) not online, esp2 couldn't connect if esp2 is connected greenLED high else redLED high

2) serial read via esp-bridge(each esp sends a "hi") if time of last "hi" >= yourINTERVALL redLED high else greenLED high

Edit: 3) At esp-link interface -> home -> Pin assignment -> Conn Led (LED to show Wifi connectivity)

Hope it helps..