0

I successfully connected to Raspberry pi3 (android things preview image) via following command adb connect <ip-address>

but after to connect Wifi using following command :

 adb shell am startservice \
    -n com.google.wifisetup/.WifiSetupService \
    -a WifiSetupService.Connect \
    -e ssid dsid \
    -e passphrase am@sin305

it gives following error msg :

 Error: No intent supplied

Problem solved already : By following changes (Don't comment now) - Tip : remove all backslash from above command.

now it's connected to Wifi successfully.

N_J
  • 141
  • 16

3 Answers3

2

\ is the linux character for a continuing line command. Since you are on windows you have to use ^ according to this.

Like so:

adb shell am startservice ^
    -n com.google.wifisetup/.WifiSetupService ^
    -a WifiSetupService.Connect ^
    -e ssid dsid ^
    -e passphrase am@sin305
Community
  • 1
  • 1
Blundell
  • 75,855
  • 30
  • 208
  • 233
0

Following command used from android studio terminal window,then only it's work :

 adb shell am startservice
    -n com.google.wifisetup/.WifiSetupService
    -a WifiSetupService.Connect
    -e ssid dsid
    -e passphrase am@sin305

Tip : remove all backslash from above command.( for Windows OS )

now it's connected to Wifi successfully.

N_J
  • 141
  • 16
0

Make sure you are connecting to a 2.4ghz network and not a 5.0 (which android things doesn't seem to support)