1234567891011121314151617181920212223242526 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Diagnostics;
- using System.IO.Ports;
- namespace IControls_FireManager
- {
- // 시리얼 통신부에 관련된 루틴은 여기에서 구현한다
-
- public static class _Serial
- {
- // 현재 컴퓨터의 포트 정보를 Data1;Data2;Data3 순으로 표현한다
- public static string MyPort()
- {
- string result = null;
- string[] ports = SerialPort.GetPortNames();
- foreach (string port in ports)
- result = result + port + _Text.SemiColon;
- result = result.TrimEnd(_Convert.Split_Key);
- return result;
- }
- }
-
- }
|