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