Unable to connect to ESP8266 via WIFI

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
hannorein
Posts: 2
Joined: Sat Jul 28, 2018 1:24 pm

Unable to connect to ESP8266 via WIFI

Post by hannorein » Sat Jul 28, 2018 1:26 pm

Hello!

I am unable to connect reliably to the ESP8266 (the ESP8266 is acting as WIFI access point). The desktop computer claims that the password is incorrect, but I'm using the default micropythoN one. Very intermittently, I seem to be able to connect, but I cannot make much sense out of when it works and when not. On the console I see:

WebREPL daemon started on ws://192.168.4.1:8266
Started webrepl in normal mode
OSError: [Errno 2] ENOENT

MicroPython v1.9.4-410-g11a38d5dc on 2018-07-27; ESP module with ESP8266
Type "help()" for more information.
>>> add 1
aid 1
station: 54:e4:3a:f0:e8:b9 join, AID = 1
station: 54:e4:3a:f0:e8:b9 leave, AID = 1
rm 1
max connection!
add 1
aid 1
station: f4:0f:24:21:81:39 join, AID = 1
station: f4:0f:24:21:81:39 leave, AID = 1
rm 1

I'm using the latest nightly build (older releases show the same issue). I've tried connecting from different computers (all MacOS). Any hint on what might be going on would be appreciated!

Hanno

yeyeto2788
Posts: 28
Joined: Wed Mar 30, 2016 4:09 pm

Re: Unable to connect to ESP8266 via WIFI

Post by yeyeto2788 » Mon Aug 13, 2018 11:06 am

Hello,

that is really weird, I have used the AP for one of my projects (https://github.com/yeyeto2788/MicroPyth ... MicroBoard) and I have discovered an error that is being discussed in Github (https://github.com/micropython/micropython/issues/3739).

I have sent several requests within the same AP and my problem is a bit different.

The error you're having might be fixed closing the socket once you have processed all information, here (https://github.com/micropython/micropython/issues/2661) it is discussed the same error you're having but there is also a work around.

Hope it helps.

Regards.

hannorein
Posts: 2
Joined: Sat Jul 28, 2018 1:24 pm

Re: Unable to connect to ESP8266 via WIFI

Post by hannorein » Mon Aug 13, 2018 2:28 pm

Thanks. In my case this happens using just the vanilla image, i.e. user code, no sockets opened, etc. Maybe the ESP8266s are just a bit too cheap...

Hanno

OutoftheBOTS_
Posts: 847
Joined: Mon Nov 20, 2017 10:18 am

Re: Unable to connect to ESP8266 via WIFI

Post by OutoftheBOTS_ » Mon Aug 13, 2018 9:21 pm

It has been a while since I used ESP8266 but back when I was using them I used WIFi access point without a problem. I do remember having a problem on 1 ESP32 board that I used and the problem was not enough capacitance on the power rail of the board and when the ESP tries to transmit it uses a sudden draw of current and can cause a dip on the power rail that seems to reset the wifi then it does it all over again.

atux_null
Posts: 20
Joined: Tue Jul 10, 2018 2:16 pm

Re: Unable to connect to ESP8266 via WIFI

Post by atux_null » Tue Aug 14, 2018 10:19 am

i am using the latest (1.9.4) bin file form my esp8266 nodemcu.
I confirm that the AP mode works fine without any issues. It has been used in more that 13 devices that i have spread around.

Post Reply