0

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?

Thanks!

1 Answer 1

0

It is possible to set up a Pi headlessly. See How to set up networking/WiFi Headless Raspbian WiFi Setup, although it is easier to use the Raspberry Pi Imager or a keyboard and screen.

Trying to automate this would be possible, but you would need to setup the Pi first and write code to do this.

2
  • How do I automate it this? I can setup the Pi one time Dec 13, 2021 at 5:24
  • @PrarthanaPBhat This is a non-trivial task, which would require restarting networking. You will not find a ready made solution. You can configure the Pi to connect to different networks (mine is setup for 9) and it will connect to the highest priority available network.
    – Milliways
    Dec 13, 2021 at 5:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.