private void setWifiThreadStart(object obj) { if (obj is RouterDialog.WifiConfig) { RouterDialog.log.Trace("setWifiThreadStart"); RouterDialog.WifiConfig expr_20 = (RouterDialog.WifiConfig)obj; string SSID = expr_20.SSID; string password = expr_20.password; RouterDialog.log.Trace("before set"); ChannelUtil.setWifi(SSID, password); RouterDialog.log.Trace("after set"); RouterDialog.log.Trace("before getssid"); string newSSID = ChannelUtil.getWifiSSID(); RouterDialog.log.Trace("after getssid"); string newPassword = ChannelUtil.getWifiPassword(); RouterDialog.log.Trace("old ssid = " + SSID); RouterDialog.log.Trace("old pass = "******"new ssid = " + newSSID); RouterDialog.log.Trace("new pass = " + newPassword); if (!string.IsNullOrEmpty(SSID) && !string.IsNullOrEmpty(newPassword) && SSID.Equals(newSSID) && password.Equals(newPassword)) { this.setWifiFinish(true); return; } this.setWifiFinish(false); } }
private void getWifiInfoThreadStart() { string SSID = ChannelUtil.getWifiSSID(); string password = ChannelUtil.getWifiPassword(); if (!string.IsNullOrEmpty(SSID) && !string.IsNullOrEmpty(password)) { this.wifiInfoAvailable(SSID, password); } }
private void setWifiThreadStart(object obj) { if (obj is ControlDialog.WifiConfig) { ControlDialog.WifiConfig expr_11 = (ControlDialog.WifiConfig)obj; string SSID = expr_11.SSID; string password = expr_11.password; ChannelUtil.setWifi(SSID, password); string newSSID = ChannelUtil.getWifiSSID(); string newPassword = ChannelUtil.getWifiPassword(); ControlDialog.log.Trace("old ssid = " + SSID); ControlDialog.log.Trace("old pass = "******"new ssid = " + newSSID); ControlDialog.log.Trace("new pass = " + newPassword); if (!string.IsNullOrEmpty(SSID) && !string.IsNullOrEmpty(newPassword) && SSID.Equals(newSSID) && password.Equals(newPassword)) { this.setWifiFinish(true); return; } this.setWifiFinish(false); } }