If every process goes fine, enter the correspondence callback , for example, connect succeed ,enter connected callback;
If anything goes wrong, it will enter the reconnect callback..
Explore... Chat... Share...
soccou wrote:I am not sure if I am doing something wrong or not.
I am getting vary random behavior with the TCP reconnect callback. I am trying to do a very simple HTTP POST to a webserver.
Most often on the ESP8266 the function defined for espconn_regist_reconcb fires with the message:
"Connection error: -11 - Not connected" and espconn_regist_recvcb function does not execute. I also don't see any return data.
but then again randomly sometimes it does with no changes in the code.
The odd part is I have control of the webserver and I can see that the POST was recieved on the remote end with no problems.
Is there some kind of TCP timeout delay that is firing the reconnect callback function or something else prematurely closing the TCP connection?
Any suggestions welcome.
Sokkou
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]