Transmit Serial Data
sent, timedo, remain = cpo:tx( txt, [ms] )
Transmit serial data on the COM port.
Parameter | Description |
---|---|
txt |
String of data to send |
ms |
Timeout to wait for the transmission to complete (default 2000ms) |
Returns | Description |
---|---|
sent |
The number of bytes transmitted |
timedo |
True if the transmission timed out |
remain |
The remaining string of what is yet to send |