How to connect wifi automatically in raspberry pi3?

Welcome to our Community
Wanting to join the rest of our members? Feel free to sign up today.
Sign up

Rushi Chaudhari

Bronze III
Feb 22, 2017
45
300
I have BSNL internet connection , sometimes the connection is down at isp side , and when it comes back pi is not connected to internet.
I have already set it up to autoconnect but that works like I need to turn off the main switch of pi and turn it on again then it gets connected to wifi automatic.
Can we write any service which checks if wifi is on and if its not it might restart that service which refreshes wifi and makes it connect like when we reboot.
 

Abhiram Shibu

Bronze II
Jan 1, 2017
142
960
I have BSNL internet connection , sometimes the connection is down at isp side , and when it comes back pi is not connected to internet.
I have already set it up to autoconnect but that works like I need to turn off the main switch of pi and turn it on again then it gets connected to wifi automatic.
Can we write any service which checks if wifi is on and if its not it might restart that service which refreshes wifi and makes it connect like when we reboot.
Sorry for late reply,

U have 2 options, enabling auto login.
Use ifupdown for managing wifi.

To use ifupdown, u have to uninstall all network managers and follow this guild
Setting WiFi up via the command line - Raspberry Pi Documentation
I hope I helped you
 

Sponsored