I am trying to setup the wifi on my android things raspberry pi following the documentation.
My Ssid contains a space in the name let's say "my ssid".
I tried to put quotes around it like this:
$ adb shell am startservice \
-n com.google.wifisetup/.WifiSetupService \
-a WifiSetupService.Connect \
-e ssid "my ssid" \
-e passphrase secretpassword
When looking at the logcat for the wifi connection I see:
WifiNetworkHistory: saving network history: "my"NONE gw: null Network Selection-status: NETWORK_SELECTION_ENABLED ephemeral=false choice:null link:0 status:2 nid:0 hasEverConnected: false
WifiConfigurator: Wifi failed to connect in 30000 ms
How can I set my wifi correctly?
-e ssid "my\ ssid"
? Basically escaping the space character itself – Babirusa