error = port:write(writeData)
Sends an asynchronous request for a write operation. When the request is serviced, the writeCallback is called to confirm completion, if previously specified with setWriteListener. Returns error if an error occurred.
Parameter |
Type |
Description |
---|---|---|
port |
in port object |
The port to write to. |
writeData |
in string |
Data to be written. Data with zero length is not supported. |
error |
out string (optional) |
If the request is successfully queued up, nil is returned; an error message otherwise. |
Introduced in platform.apiLevel = '2.7'.