Skip to content
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

Clarification on background magic #76

Closed
marvinroger opened this issue May 19, 2015 · 1 comment
Closed

Clarification on background magic #76

marvinroger opened this issue May 19, 2015 · 1 comment
Labels

Comments

@marvinroger
Copy link

Hi,

Thanks for this amazing project, a great push forward for the ESP8266 ecosystem.

However, I feel a little bit uncomfortable with how the Wifi stack and FTP server (for example) are handled.
On Arduino for ESP8266, the Wifi stack is handled at each end of the loop function, or at an explicit yield or delay call if the loop function takes too long.
An FTP server would be init'ed in the setup function and would be kept alive with kind of a FTP.loop function in the Arduino loop function. This is a behaviour I understand, because I explicitely control it.

This is where I am lost: there is no such loop function, therefore no kind of FTP.loop function. Would you then please clarify the way Swing works? Is Swing event based only, so a blocking function call would block the whole thing (wifi, servers)?

Thanks.

@anakod
Copy link
Member

anakod commented May 20, 2015

Sming is working in asynchronous mode - it will call your callbacks when it needed. All other time ESP will process main tasks - WiFi network supporting and TCP stack processing.

@anakod anakod closed this as completed Jun 4, 2015
slaff referenced this issue in slaff/Sming Dec 9, 2016
Better syntax highlighting & switch to redcarpet parser
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants