cjimti / iotwifi

Raspberry Pi (arm) wifi configuration container. Configure and control wifi connectivity with a JSON based REST api.
https://imti.co/iot-wifi/
MIT License
303 stars 124 forks source link

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

Closed breandan closed 6 years ago

breandan commented 6 years ago

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

breandan commented 6 years ago

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

cjimti commented 6 years ago

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

breandan commented 6 years ago

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.

breandan commented 6 years ago

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).

breandan commented 6 years ago

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...