示例#1
0
 public async Task TestSerialInit()
 {
     SerialConnection ser = new SerialConnection();
     bool ret = await ser.Initialize(null, 0);
     Assert.IsTrue(ret);
     ser.Close();
     ser.Dispose();
 }
示例#2
0
 public async Task<bool> Initialize(String portName)
 {
     connection = new SerialConnection();
     return await connection.Initialize(portName);
 }