-
Notifications
You must be signed in to change notification settings - Fork 116
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
MicroWebSrv not started when in AP mode #12
Comments
The server code don't checks WLAN connection ..?
It doesn't this case in my src.
2018-02-09 13:44 GMT+01:00 Liberasys <notifications@github.com>:
… Hello JC,
I have a new issue maybe in side effect of loboris network status
improvements.
Your server code checks WLAN connection before starting. But in AP mode,
the connection is not made, thus not starting the web server.
Maybe you could follow the example of lemariva in his FTP server ?
self.wlan = network.WLAN(network.AP_IF)
if self.wlan.active():
ifconfig = self.wlan.ifconfig()
else:
self.wlan = network.WLAN(network.STA_IF)
if self.wlan.active():
ifconfig = self.wlan.ifconfig()
else:
dbg("No active connection")
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAegLMyubEK1IJKZvnnGAD7a8d00wbJ1ks5tTD3IgaJpZM4R_3sn>
.
--
*Sincèrement,*
|
Ok, sorry, it is due to Boris modifications : |
Ok no souci, it's possible to check WLAN configuration and not
"isconnected" :)
2018-02-12 9:56 GMT+01:00 Liberasys <notifications@github.com>:
… Ok, sorry, it is due to Boris modifications :
if not self._started : if not network.WLAN().isconnected(): print("WLAN
not connected!") return
I will see with him.
Sorry for inconvenience.
Thank you JC.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAegLOxy0GVsG6Gi3RjAXq88A211bUDPks5tT_zMgaJpZM4R_3sn>
.
--
*Sincèrement,*
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello JC,
I have a new issue maybe in side effect of loboris network status improvements.
Your server code checks WLAN connection before starting. But in AP mode, the connection is not made, thus not starting the web server.
Maybe you could follow the example of lemariva in his FTP server ?
The text was updated successfully, but these errors were encountered: