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

MicroWebSrv not started when in AP mode #12

Closed
Liberasys opened this issue Feb 9, 2018 · 3 comments
Closed

MicroWebSrv not started when in AP mode #12

Liberasys opened this issue Feb 9, 2018 · 3 comments

Comments

@Liberasys
Copy link

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")
@jczic
Copy link
Owner

jczic commented Feb 10, 2018 via email

@Liberasys
Copy link
Author

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.

@jczic
Copy link
Owner

jczic commented Feb 12, 2018 via email

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