1. 程式人生 > >Android things Wifi setting

Android things Wifi setting

am startservice -n com.google.wifisetup/.WifiSetupService-a WifiSetupService.Connect

The following arguments are supported with this command:

Argument Description
-e ssid network_ssid Connect to the wireless network SSID specified by network_ssidThis argument is required.
-e passphrase network_pass
Optional argument to use the passcode specified by network_pass to connect to the network SSID. This argument is not necessary if your network doesn't require a passcode.
-e passphrase64 encoded_pass Optional argument used in place of passphrase for passcodes with special characters (space, !, ", $, &, ', (, ), ;, <, >, `, or |
). Use base64 encoding to specify the value for encoded_pass.
--ez hidden true Optional argument to indicate that the SSID specified in this command is hidden. If omitted, this value defaults to false.