helium / gateway-config

The Helium configuration application. Enables configuring the Helium Hotspot over Bluetooth
Apache License 2.0
38 stars 25 forks source link

Reattempt to connect to WiFi network when agent off #61

Closed fvasquez closed 4 years ago

fvasquez commented 4 years ago

@tyler-whitman removed the "J&T Wireless" network from his Helium Hotspot then tried reconnecting to it.

2020-07-21 17:58:09.750 [info] <0.534.0>@gateway_config_worker:handle_info:226 Enabling advertising
2020-07-21 17:58:11.743 [info] <0.627.0>@ble_advertisement:handle_info:99 Started advertisement gateway_ble_advertisement
2020-07-21 17:58:48.708 [info] <0.545.0>@gateway_gatt_service:handle_info:67 Trying to connect to WiFi SSID: "J&T Wireless"
2020-07-21 17:58:48.711 [info] <0.638.0>@connman_connect:connecting:62 Connecting to "J&T Wireless" at "/net/connman/service/wifi_6081f95405a9_4a265420576972656c657373_managed_psk"
2020-07-21 17:58:48.714 [info] <0.545.0>@gateway_gatt_service:handle_info:86 Connect result {error,"net.connman.Error.NotRegistered"}
connmanctl> connect wifi_6081f95405a9_4a265420576972656c657373_managed_psk
Error /net/connman/service/wifi_6081f95405a9_4a265420576972656c657373_managed_psk: Method "Connect" with signature "" on interface "net.connman.Service" doesn't exist
connmanctl> agent on
Agent registered
connmanctl> connect wifi_6081f95405a9_4a265420576972656c657373_managed_psk
Agent RequestInput wifi_6081f95405a9_4a265420576972656c657373_managed_psk
  Passphrase = [ Type=psk, Requirement=mandatory, Alternates=[ WPS ] ]
  WPS = [ Type=wpspin, Requirement=alternate ]
Passphrase?