wonjerry/flutter_wifi_connector

wifi connect to non existing network returns true

Opened this issue · 1 comments

I connect to this network:

image

It does not exist in my area. But I still get true when using WifiConnector.connectToWifi

      if (!isWifiEnabled) {
        isWifiEnabled = true
      }

      // 위에서 생성한 configration을 추가하고 해당 네트워크와 연결한다.
      var networkId = addNetwork(wifiConfiguration)
      if (networkId == null) {
        result.success(false)
        return;
      }
      disconnect()
      enableNetwork(networkId, true)
      reconnect()
      result.success(true)

at the end success(true) is always send

#21 will fix pre Q android devices.
#19 will support >Q android devices