diff --git a/src/android/src/com/pylonproducts/wifiwizard/WifiWizard.java b/src/android/src/com/pylonproducts/wifiwizard/WifiWizard.java index 2c4ac8f..75cd7fd 100644 --- a/src/android/src/com/pylonproducts/wifiwizard/WifiWizard.java +++ b/src/android/src/com/pylonproducts/wifiwizard/WifiWizard.java @@ -478,6 +478,12 @@ private boolean getConnectedSSID(CallbackContext callbackContext){ return false; } + SupplicantState state = info.getSupplicantState(); + if(!state.equals(SupplicantState.COMPLETED)) { + callbackContext.error("Connection not in COMPLETED state"); + return false; + } + String ssid = info.getSSID(); if(ssid.isEmpty()) { ssid = info.getBSSID();