I followed these wonderful instructions on setting up wifi-direct, but now I need to be able to set up regular wifi after that.
Here's what I'm trying to do. Trying to set up the Pi Zero W to do what a chromecast does on initial setup. It defaults to wifi-direct upon startup, then you connect to it via a phone app (I might just use a browser), and provide your home/office wifi credentials. From there, I need to add those credentials to ... ? what, wpa-supplicant config? and connect based on those creds.
Its that last part I'm struggling with. After I supply the wifi creds, what needs to change to connect to regular wifi?
Part of the instructions on the referenced page includes disabling classic networking. I don't care if I have to re-enable classic networking to do it, or just modify the configs for the "new" way its doing it. I just need to be able to script it.