-
Notifications
You must be signed in to change notification settings - Fork 115
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
Comments
And if you wait a little after the Start call and before the IsStarted ?
Le ven. 26 juil. 2019 à 10:09, Alf <[email protected]> a écrit :
… 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'*
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#59?email_source=notifications&email_token=AAD2ALF2XNZSPC4GX22VRELQBKWMNA5CNFSM4IHBP4Z2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HBU6WDQ>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAD2ALFICBHQCGBWXGKQRCDQBKWMNANCNFSM4IHBP4ZQ>
.
--
*Sincèrement,*
|
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. >>> mws.Stop()
>>> utime.sleep(10)
>>> mws.IsStarted()
True |
Hello,
I released a fully new version (v2.0) of my web server here :
github.com/jczic/MicroWebSrv2.
Open source MIT, fully asynchronous, more robust, more fast and more
efficient!
It is delivered with a good documentation.
Thank you for your support and feedback.
… 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
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#59?email_source=notifications&email_token=AAD2ALG537RVLW7HJQWFRD3QBQBXNA5CNFSM4IHBP4Z2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD26HHFI#issuecomment-515666837>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAD2ALFI6JV2VSHCCYYYFWDQBQBXNANCNFSM4IHBP4ZQ>
.
--
*Sincèrement,*
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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'
The text was updated successfully, but these errors were encountered: