You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been having issues with creating TCP connections, and I've finally narrowed it down to be some kind of conflict between net and tmr. I can recreate it reliably with this script:
Sometimes I don't get "Connected". Sometimes I don't even get "Disconnected" until next time I try to open a connections.
If I comment out the delay, I get this (sometimes I have to power-cycle the ESP8266 before it works):
8�Ÿ†�þ�Š�ƒ(‡.,Š–Š‚‡(‡.,
��‹ƒ�‡£�¡Cá
NodeMCU 0.9.5 build 20150127 powered by Lua 5.1.4
> dofile('test.lua')
192.168.0.103 255.255.255.0 192.168.0.1
Connecting...
> Connected
Sent data
Received data
Disconnected
I've tried several of the recent pre_build firmwares, and I had problems with all of them. However this exact example is only tested on the latest firmware.
The text was updated successfully, but these errors were encountered:
tmr.delay will stop everything. include wifi beacon.
so after tmr.delay for a long time. your wifi connection will be beacon time out.
you have to reconnect to ap.
tmr.delay are not recommended in long time(1 second) delay.
please use tmr.alarm instead.
I've been having issues with creating TCP connections, and I've finally narrowed it down to be some kind of conflict between net and tmr. I can recreate it reliably with this script:
init.lua is empty and I run the script a few seconds after reset. I get this:
Sometimes I don't get "Connected". Sometimes I don't even get "Disconnected" until next time I try to open a connections.
If I comment out the delay, I get this (sometimes I have to power-cycle the ESP8266 before it works):
I've tried several of the recent pre_build firmwares, and I had problems with all of them. However this exact example is only tested on the latest firmware.
The text was updated successfully, but these errors were encountered: