Open
Description
In Access Point mode, wifi.radio.ipv4_address
is None, instead the IP of the board is wifi.radio.ipv4_address_ap
.
In addition both AP and STA modes can be active at the same time.
A minimal change would be to try ipv4_address
first, then ipv4_address_ap
.
A further addition would be to allow giving the chosen IP address to listen to as an argument to WSGIServer.start
and/or always listen to both by default using 0.0.0.0
(if that works, as it seems).
Metadata
Metadata
Assignees
Labels
No labels