Ive been working with my ESP8266 and have encountered an issue that seems to be coming from nowhere and being unsolvanle. At least – to me.
Basically I went on with this tutorial on building a simple server socket.
However my esp suddenly stopped allowing connections to itself. The code works normally until the line 23 of main.py
:
while True:
conn, addr = s.accept()
And simply stops working or moving ahead in the while loop. Its simply stuck in itself!
There are no error messages. AT least Thonny
doesnt show any.
The funny part is – sometimes it does actually accept the connection. With all the same code and hardware and one of 100 tries maybe.
Ive tried to look up for a similar failure here, on stackoverflow and @Techtician has the same, I believe unsolved problem. (link to his post here)