RaspiOS has a function where you can put your wpa_supplicant.conf file in /boot (which appears as E:\ on Windows) and at boot time it will move that to /etc/wpa_supplicant/wpa_supplicant.conf then restart WiFi networking.
So you create a file with Notepad++ like
Code: Select all
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="myNetworkSSIDhere"
psk="myNetworkSecretPasswordHere"
}
That's a whole bunch easier that trying to do the Chromecast thing, "If I can't find an STA network - I start a AP network to collect credentials".