UNO+WiFi R3 ATmega328P+ESP8266 Wifi Communication

hello, I use robotdyn uno+wifi r3 ATmega328P+ESP8266 board. I finally make them work together via AT commands. atmega sends AT commands to esp (basic get commands I use actually). I get machine data with rs232 shield and atmega filters and sends them to esp which sends them to server. Sometimes wifi connection drops or when the server is down for a minute, esp couldn't send ok command and I programmed atmega to keep data in memory and restarts esp, check wifi connection again and then send data again, and try it again and again after it sends data successfully. the problem is, all this work is handled by atmega and things got complicated in the program I use. I need a good example skecth for both atmega and esp. I'd like to send the string to esp and esp should handle the connection problem itself. It should reconnect, and try to send data. And do you know if uploading a sketch overwrites the AT firmware on esp? thank you.

yes a sketch upload to esp8266 deletes the AT firmware.
for old AT firmware you can use WiFiEsp library. for AT 1.7+ you can use my WiFiEspAT library

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.