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