I am working on a project which would require me to connect my Rpi 0 w to my home wifi. I want to send the pi wifi credentials(ssid and psk) over my phone the very first time and then on subsequent reboots, the pi should automatically connect to my home network. During this process, the pi wouldn't have access to monitor/keyboard/mouse.
The closest I came to achieve what I want was by following this: https://imti.co/iot-wifi/#connect-the-p ... fi-network
But the above didn't automatically connect to wifi after a reboot.
Any suggestions on how to do this?