Open cdupont opened 3 years ago
I tried this, but didn't work: I can't connect with WIFI
Which wpa_supplicant.conf do I need to modify? The one in /boot or /etc/wpa_supplicant/ ?
ah one thing I forgot, after the configuration above you need to run:
bash /home/pi/waziup-gateway/wazigate-host/start_wifi.sh
or on SD card, you can add it to this file, right above the wifi scripts:
/home/pi/waziup-gateway/start.sh
The idea is to allow to configure the WIFI just after flashing the SD card, by mounting the SD on the PC. This way, no AP mode, Ethernet cable or HDMI screen is needed. This is what Rasbian do for headless: https://www.raspberrypi.org/documentation/configuration/wireless/headless.md
From Moji: in order to force the pi not to go to AP mode, please set that wpa_supplicant.conf then create an empty file on the root of wazigate with this name: ~/waziup-gateway/.default_ap_done so the wazigate knows that the WiFi is being pre-configured