You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • Maybe you could try the following before the getAPs?

    wifi.at.cmd("AT+CWMODE=1\r\n", 1000, print);
    

    That'll put the module into non-AP mode. The second connect should have done that automatically though, but maybe the fact that it doesn't manage to connect means that it doesn't remember after a reset.

    Also it might be worth trying call getAPs a few seconds after a reset - maybe the ESP8266 needed a few seconds to gather a list of APs (although it didn't on mine).

About

Avatar for Gordon @Gordon started