SerialPort

Static methods

staticcheckPort(a:SerialId, b:SerialId):Bool

Check a field in b

staticgetList(cb:Array<SerialId> ‑> Void, err:(String, PosInfos) ‑> Void):Void

statictracePorts():Void

Constructor

new(id:SerialId, ?cfg:Null<SerialPortConfig>)

Variables

read onlyconnected:Bool

read onlyonData:Signal1<BytesInput>

read onlyonOpen:Signal0

read onlyonString:Signal1<String>

Methods

destroy():Void

logPorts():Void

write(b:BytesOutput):Void

writeAsync(b:BytesOutput, ok:() ‑> Void, ?error:(String, PosInfos) ‑> Void):Void

Inherited Variables

Defined by Logable

read onlyerrorActive:Bool

read onlylogActive:Bool

read onlyonError:Signal2<String, Null<PosInfos>>

read onlyonLog:Signal2<String, Null<PosInfos>>

Inherited Methods

Defined by Logable

inlinebench(?name:String, f:() ‑> Void, ?p:Null<PosInfos>):Void

inlinebenchAsync(?name:String, f:() ‑> Void ‑> Void, ?p:Null<PosInfos>):Void

inlinebenchComplete(name:String, ?p:Null<PosInfos>):Void

inlinebenchStart(name:String, ?p:Null<PosInfos>):Void

inlineerror(s:String, ?p:Null<PosInfos>):Void

inlineerrorf(fn:() ‑> String, ?p:Null<PosInfos>):Void

inlinelistenError(l:ILogable, ?id:String):Void

inlinelistenErrorAndLog(l:ILogable, ?id:String):Void

inlinelistenLog(l:ILogable, ?id:String):Void

inlinelog(s:String, ?p:Null<PosInfos>):Void

inlinelogf(fn:() ‑> String, ?p:Null<PosInfos>):Void

inlinestopTraceAll():Void

inlinestopTraceErrors():Void

inlinestopTraceLogs():Void

inlinetraceAll():Void

@:value({ date : false, time : true })inlinetraceErrors(time:Bool = true, date:Bool = false):Void

@:value({ date : false, time : true })inlinetraceLogs(time:Bool = true, date:Bool = false):Void