Page 1 of 1

Cant connect 2 boards again after reset.

Posted: Sun Mar 14, 2021 10:23 am
by Appleicon
I made a server.py and client.py and they are working fine. Able to send and receive data.

But everytime I did a reset on both, I can't connect them back again. I will get an error 103, ECCONABORTED.

The only workaround is to erase and flash the client board again.

Is there anyway to prevent erasing and flash everytime I want to connect them again?

Re: Cant connect 2 boards again after reset.

Posted: Mon Mar 15, 2021 10:16 am
by pythoncoder
You'll need to provide more information if we are to diagnose this network problem. Are either of the boards acting as an access point? What about DHCP and IP addresses - are these being allocated consistently? How are you connecting?

Re: Cant connect 2 boards again after reset.

Posted: Tue Mar 16, 2021 12:28 pm
by Appleicon
I managed to get past this problem by changing the default IP (192.168.4.1) to something else and it worked. Its able to reconnect, send and receive data.

So a little background to this, the server.py have an access point. The problem that I had was that client.py was able to connect to the AP using sta_if.connect but was unable to get a connection for socket bind using socket connect.

Before I had this problem, I was always able to get connection for AP and sockets but recently it stopped working for the default IP (192.168.4.1). Changing the port bind didnt work but changing the IP works.

It will be good if it can be explained on why this is happening.