How to connect wifi automatically in raspberry pi3?

Rushi Chaudhari

Bronze I
Feb 22, 2017
45
1,520
24
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 I
Jan 1, 2017
149
1,585
20
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
 

Recommended

Namecheap.com

Trending