Closed PA0MHE closed 7 years ago
Jonas,
Not sure, but: RunningState WIFI_STATE_IDLE comes after the reception of "SEND OK", this comes in my case only after a successfull send() command, however to do a send() first is tested for WIFI_STATE_IDLE. So first transmission is impossible.
Martin it's been a while since I looked at the code. I have around 5 devices online 24/7 soo I know it worked at one time. I can't be 100% certain about the latest version since I have not upgraded the lib with the latest contributed patches.
If you verify that there is a bug I really welcome a patch :)
Regards Jonas
19 okt. 2016 kl. 19:23 skrev MaartenHeuv notifications@github.com:
Jonas,
Not sure, but: RunningState WIFI_STATE_IDLE comes after the reception of "SEND OK", this comes in my case only after a successfull send() command, however to do a send() first is tested for WIFI_STATE_IDLE. So first transmission is impossible.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
Sorry,
My fault: There is no issue / bug
Maarten
There was no issue
I tried running example "Simple_TCP_Client", however it didn't work.
Looking in the code I found the following: connectTCP() exits with: setRunningState(WIFI_STATE_CONNECT) send() test on if(getRunningState() == WIFI_STATE_IDLE) This is, in my case, always false so nothing is send.
I resolved this by changing in: if(getRunningState() == WIFI_STATE_CONNECT) Then is works !
I'm totally not sure if my findings or solution is the right !!!!!!!