private void button1_Click(object sender, EventArgs e) { c++; string mess = "jhkjhkjh kjhkjh kjh khkjhkjhkhkh khkh kh " + c.ToString(); EspRpcApi.writeLineToLog(mess); }
private bool ping() { System.Net.IPAddress address = null; if (!System.Net.IPAddress.TryParse(Properties.Settings.Default.EspIp, out address)) { showError(Properties.Resources.Msg_WrongIpAddress); return(false); } if (!EspRpcApi.Ping(address)) { showError(string.Format(Properties.Resources.Msg_NoPing, Properties.Settings.Default.EspIp)); return(false); } return(true); }
private void refreshDir() { Int32 port; if (!Int32.TryParse(Properties.Settings.Default.EspPort, out port)) { showError(Properties.Resources.MsgWrongPort); return; } api = new EspRpcApi(new EspModule(Properties.Settings.Default.EspIp, port)); if (ping()) { fillProjectDataGrid(); fillEspDataGrid(); } }