cjimti/iotwifi

How do I set a default WiFi network for station mode?

Closed this issue · 5 comments

I can set a default WiFi SSID and PSK for AP mode, but how do I configure the station mode WiFi credentials?

Should I just use the wifi_supplicant.conf? This is not described in the readme.

yes wifi_supplicant.conf is the place.
https://wiki.archlinux.org/index.php/WPA_supplicant

I'm having some trouble configuring the default network via wpa_supplicant.conf. It broadcasts the AP WiFi, but does not connect to the default network, using the same wpa_supplicant configuration that worked previously. I have disabled wpa_supplicant using the readme instructions.

Note I am able to connect using the REST interface, but the default wpa_supplicant.conf fails to join the network (this is my wificfg.json).

PEBCAK. I forgot to mount the wpa_supplicant.conf into the container. Added instructions to the readme in case anyone else forgets to do this...