Skip to content

Commit 289310d

Browse files
author
John Scimone
committed
docs!
1 parent 1263bca commit 289310d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

readme.md

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Raspberry Pi Wlan/AP Mode Switching Scripts
2+
3+
#### What's all this then?
4+
Well, as the title here says, these scripts enable a Paspberry Pi to switch between station mode (connect to an access point) and Access Point mode (it **_is_** an access point) without needing to reboot the Pi.
5+
6+
#### Ok... Why would I want that?
7+
Well let's say that you want to have a Pi embedded in a thing that has no interface for a user to configure it. You could have a button connected to the Pi that triggers it to switch to AP mode. Then the user can to it with their smartphone or whatever and browse to a webserver hosted by the Pi. Or maybe you just want to be able to demo some network functionality when you're not in range of an access point.
8+
9+
#### Neat. So how do I make it work then?
10+
Run this script as root. Use the -h flag to see usage info.
11+
12+
`./setup_wlan_and_AP_modes.sh -s <station mode SSID> -p <station mode password> -a <AP mode SSID> -r <AP mode password>`
13+
14+
By default, the Pi will boot into station mode. You can change this by including the -d flag when running this script.
15+
16+
After running this script, you should reboot your Pi.
17+
18+
#### Then...
19+
You can run the `switchToAP.sh` or `switchToWlan.sh` scripts (as root) to do what they say.
20+
21+
#### What if I want to change the station mode AP and passwords later?!
22+
Just rerun the `setup_wlan_and_AP_modes.sh script with whatever you need!

0 commit comments

Comments
 (0)