private void onSuscribe_RobotsStatus_Basic() { try { if (Data.Instance.isConnected) { //Dictionary<string, string> robotinfo = Data.Instance.Robot_status_info; //foreach (KeyValuePair<string, string> info in robotinfo) int cnt = 0; cnt = Data.Instance.Robot_RegInfo_list.Count; if (cnt > 0) { foreach (KeyValuePair <string, Robot_RegInfo> info in Data.Instance.Robot_RegInfo_list) { string strrobotid = info.Key; Robot_RegInfo value = info.Value; commBridge.onSelectRobotStatus_Basic_subscribes(strrobotid); } } } } catch (Exception ex) { Console.Out.WriteLine("onSuscribe_RobotsStatus_Basic err :={0}", ex.Message.ToString()); } }
private void onSuscribe_RobotsStatus_Basic() { try { if (Data.Instance.isConnected) { //Dictionary<string, string> robotinfo = Data.Instance.Robot_status_info; //foreach (KeyValuePair<string, string> info in robotinfo) int cnt = 0; cnt = Data.Instance.Robot_RegInfo_list.Count; if (cnt > 0) { foreach (KeyValuePair <string, Robot_RegInfo> info in Data.Instance.Robot_RegInfo_list) { string strrobotid = info.Key; Robot_RegInfo value = info.Value; commBridge.onSelectRobotStatus_Basic_subscribes(strrobotid); // 로봇 기본 상태 Thread.Sleep(Data.Instance.nSubscribeDelayTime); commBridge.onControllerstate_subscribe(strrobotid); // CPU, RAM 상태 Thread.Sleep(Data.Instance.nSubscribeDelayTime); commBridge.onTaskResult_subscribe(strrobotid); // TASK RESULT SUBS Thread.Sleep(Data.Instance.nSubscribeDelayTime); Invoke(new MethodInvoker(delegate() { textBox2.AppendText(strrobotid + " Subscribe...\r\n"); })); } } } } catch (Exception ex) { Console.Out.WriteLine("onSuscribe_RobotsStatus_Basic err :={0}", ex.Message.ToString()); } }