private void UpdateSTAKeepAliveInfoOnReceive(String STA_MAC) { if (_AssociatedDevices.Contains(STA_MAC)) { _KeepAliveReceived++; _AssociatedDevices.Increase(STA_MAC); } else { MessageBox.Show(STA_MAC + " not associated UpdateSTAKeepAliveInfo"); } }
//===================================================================== /// <summary> /// Function for update keepAlive array list by receiving KeepAlive Packet /// </summary> /// <param name="staMAC">MAC address of STA device</param> private void UpdateSTAKeepAliveInfoOnReceive(string staMAC) { if (_AssociatedDevices.Contains(staMAC)) { KeepAliveReceived++; _AssociatedDevices.Increase(staMAC); } else { MessageBox.Show(staMAC + " not associated UpdateSTAKeepAliveInfo", this.getMACAddress()); } }
//********************************************************************* public Boolean ConnectToAP(String SSID) { if (SSID.Length > 0 && _AccessPoint.Contains(SSID)) { Connect _conn = new Connect(CreatePacket()); AP _connecttoAP = GetAPBySSID(SSID); if (_connecttoAP != null) { Thread newThread = new Thread(() => ThreadableConnectToAP(SSID, _conn, _connecttoAP)); newThread.Start(); return(true); } else { AddToLog("Cannot find AP with SSID:" + SSID); } } return(false); }