Fixing Serial Protocol

This commit is contained in:
Piv
2020-07-09 20:23:59 +09:30
parent f9162d07ca
commit 45bead4f38

View File

@@ -3,8 +3,8 @@ import Foundation
public protocol LidarSerial {
var dtr: Bool {get set};
var inWaiting: Int {get};
func closePort() -> Void;
func openPort() -> Void;
func closePort();
func openPort() throws;
func readData(ofLength: Int) throws -> Data;
func writeData(_ data: Data) throws -> Void;
func writeData(_ data: Data) throws -> Int;
}