-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
socket:send problem #964
Comments
Yes -- it turns out that with the later SDKs from espressif, you can only have one socket::send outstanding at once. This is really annoying. I worked around this by using coroutines. In my case, I was making an httpserver work, but the idea is the same. You can take a look at https://github.com/marcoskirsch/nodemcu-httpserver for the stuff that I did (look in the commit log). |
This characteristic of the SDK is covered in the FAQ at https://nodemcu.readthedocs.org/en/dev/en/faq/#how-is-coding-for-the-esp8266-different-to-standard-lua Also see #730 for technical details. |
@pjsg, @devsaurus Thanks for the clarification. |
Previously: #913
I was wrong, it's not
on:receive
problem - it'ssocket:send
problem.Bug example:
if I change
to
All be ok. On older (sep 2015) firmware both cases was ok.
I checked more:
Result:
All consequent
send
was ignored.The text was updated successfully, but these errors were encountered: