I have been trying to connect my Intel Edison running Android things to the Wifi. I was able to connect to a hotspot that did not require an identity using the code below:
$ adb shell am startservice \
    -n com.google.wifisetup/.WifiSetupService \
    -a WifiSetupService.Connect \
    -e ssid <Network_SSID> \
    -e passphrase <Network_Passcode>
However is there a way to add an identity/username as an extra? This is required to connect to a specific Wifi network.
Thanks!