ESP8266 and WPA2 encryption

esfeld Oct 18, 2017

  1. esfeld

    esfeld TrainBoard Member

    443
    382
    17
    Has anybody experienced difficulty accessing NodeMCU or ESP8266 with WPA2 encryption? I have recently changed my router from WEP to WPA2 and am having trouble connecting to ESP8266 devices.
     
    Scott Eric Catalano likes this.
  2. William E Van Buskirk

    William E Van Buskirk TrainBoard Member

    40
    22
    3
    I should wait with this reply, as my recent experience regarding WPA has nothing to do with the ESP.
    Throwing all caution to the wind; A few weeks ago some friends were staying over and I was getting their phones on the WiFi (I have WPA2 running). In the past when allowing others to use our connection, it was just a matter of entering the WPA password in their device. But in this case their two phones would not connect. Turned out I had to physically push a 'connect' button on my router, while the phone tried to connect, to allow the phones. Didn't even know the router had the button till one of the phone's help message directed me to press it.
    I don't have any idea if this will help at all, but maybe.
    Bill
     
    Scott Eric Catalano likes this.
  3. Atani

    Atani TrainBoard Member

    1,471
    1,770
    37
    what sort of trouble are you facing? I have my routers setup with WPA2 and connect without issues.
     
    Scott Eric Catalano likes this.
  4. esfeld

    esfeld TrainBoard Member

    443
    382
    17
    Everything worked flawlessly when the router was set with WEP ..... after I changed to WPA2 nothing worked ... I had to reset all computers, tablets and cell phones (re-enter pwd etc) to get them to access the NW. Yet none of the ESP8266 units work .. I have reloaded the sketches and still can not see the NW .. I think that there is a residual setting in the ESP that is clinging to the WEP encryption and am trying to "AT+RESTORE" them and reloading the bin but am having no success. Other people (like yourself, I imagine) who originally were using WPA2 when they configured the ESP have had no trouble..... which leads me to believe that somehow the ESP is retaining the original setting preventing access to the new WPA network.
     
    Scott Eric Catalano likes this.
  5. Atani

    Atani TrainBoard Member

    1,471
    1,770
    37
    you may need to clear the flash on the ESP and reflash it. If you download the latest firmware you can use the command in this file to reflash the ESP from scratch:
    https://github.com/atanisoft/BaseStation/blob/master/DCCpp_ESP/esp8266-reset.txt

    This effectively wipes everything on the ESP device so use with caution. The above is for the 512+512 ESP boards, you will need to adjust the addresses accordingly for other boards. If you have a different board type let me know and I can help with the appropriate commands. I only have an ESP-01 and a WeMos D1 available to me but I have the documentation for other boards.
     
    Scott Eric Catalano likes this.

Share This Page