Chat freely about anything...

User avatar
By fredgreer
#29697 I'm using the v0.9.2.2 AT command firmware on my ESP-07, which I have very happily talking to a Cypress PSoC 4 microprocessor. The PSoC needs to know whether the ESP is connected to WiFi or not. I can do this at the moment by polling with "AT+CWJAP?" every few seconds and checking if the ESP has an IP address. The problem with this approach is that if I poll for the IP as an HTTP request is coming in and before my PSoC has had a chance to check for incoming requests, the HTTP request is lost and never gets responded to, leaving a hanging connection.

Is there some way for the ESP to send a UART message every time it connects or disconnects to/from WiFi so I can keep track of this without polling? I've had a look through quite a lot of documentation but can't find much.

Thanks!