Newer iPhones will broadcast an SSID in hotspot mode as such:
My Name\342\\\200\\\231\\s iPhone
I observed this SSID in the GUI.
When I grab the SSID via the command line:
$ sudo iwlist wlan0 scan | grep ESSID
> My Name\xE52\x80\x99s iPhone
In the iPhone it shows up as:
My Name's iPhone
If, in wpa_supplicant.conf, I enter:
network={
ssid="My Name's iPhone"
psk="my_passcode"
}
The Raspberry Pi will not connect to the iPhone hotspot.
However, if, in wpa_supplicant.conf
, I enter:
network={
ssid="My Name\342\\\200\\\231\s iPhone"
psk="my_passcode"
}
I get an error in the command line.
$ sudo ifdown wlan0
$ sudo ifup wlan0
> wpa_supplicant: /sbin/wpa_supplicant daemon failed to start
> run-parts: /etc/network/if-pre-up/wpasupplicant exited with return code 1
> Failed to bring up wlan0
Via GUI, I get the error "Invalid argument".
If, in wpa_supplicant.conf
I enter:
network={
ssid="My Name\xE52\x80\x99s iPhone"
psk="my_passcode"
}
Then raspbian will not connect to it, and will connect to a lower priority network (assume I have the priorities set correctly, which I have tested).
SSID
on the iPhone? I don't want everyone to see "Joe Bloggs iPhone" anyway and set a sensibleSSID
. – Milliways Jan 13 '16 at 22:28SSID
? The '' is a normal 'NIX escape character. I guess this derived from Unicode (maybe U+2019) – Milliways Jan 13 '16 at 22:51\xE52\x80\x99
. – ericmjl Jan 13 '16 at 22:52’
– Milliways Jan 13 '16 at 23:04