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

ESP32 - mws.IsStarted() problem when threaded #59

Closed
xal88 opened this issue Jul 26, 2019 · 3 comments
Closed

ESP32 - mws.IsStarted() problem when threaded #59

xal88 opened this issue Jul 26, 2019 · 3 comments

Comments

@xal88
Copy link

xal88 commented Jul 26, 2019

Hi,
when running mws.Start(threaded=True)
then mws.IsStarted() always returns false.

mws is working fine, but of course mws.Stop() also fails.

What am I missing ? Thanks for your support
Alf
ESP32 4MB , micropython version='v1.11-178'

@jczic
Copy link
Owner

jczic commented Jul 26, 2019 via email

@xal88 xal88 changed the title ESP32 - mws.IsStarted() false when threaded ESP32 - mws.IsStarted() problem when threaded Jul 27, 2019
@xal88
Copy link
Author

xal88 commented Jul 27, 2019

With a pause this is working fine.

MicroPython v1.11-178-gad0b7cb01 on 2019-07-25; ESP32 module with ESP32
>>> from microWebSrv import MicroWebSrv
>>> mws = MicroWebSrv(webPath="/www")
>>> mws.Start(threaded=True)
>>> utime.sleep(10)
>>> mws.IsStarted()
True

So my 2 seconds wait was too short.
How can I stop/restart the server now ? - wait does not help there.

>>> mws.Stop()
>>> utime.sleep(10)
>>> mws.IsStarted()
True

@jczic
Copy link
Owner

jczic commented Oct 20, 2019 via email

@jczic jczic closed this as completed Nov 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants