So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By cnunes
#69379 I'm trying to write my first program using arduino IDE. I apologize if the question is too silly. Is it necessary to check if the esp8266 lost the connection and try to reconnect or does the firmware attempt to reconnect automatically?
User avatar
By QuickFix
#69393
cnunes wrote:I apologize if the question is too silly.

Don't worry, this is the "** Newbie Corner **" where there are no silly questions. ;)

You have to do everything yourself in code: connect, disconnect and re-connect when a connection is dropped.
User avatar
By rudy
#69395 I believe the default is for the board to reconnect when a connection is dropped. That is why the code to connect can be put in the setup routine.

https://github.com/esp8266/Arduino/issues/2735

Problem manually handling WiFi reconnect

I'm trying to handle WiFi auto/reconnects in WIFI-STA mode but having troubles.
Setting WiFi.setAutoConnect ( true ) to auto connect on power up works just fine.

Setting WiFi.setAutoReconnect ( false ) on the other hand have issues. ...