write.serialConnection {serial} | R Documentation |
Wirtes data to serial interface.
Description
Writes to a serial connection in ascii or binary mode.
Usage
write.serialConnection(con,dat)
Arguments
con |
serial Connection |
dat |
data string to write on the serial interface. This must be a string
|
Details
In normal operation mode (non-binary ascii mode) write.serialConnection
respects the translation and adds the end-of-line characters (\n;\r) according
to the settings. Any input is converted to character, i.e. c(1,2,3)
becomes
'123'
and so on.
In binary mode no end-of-line characters are added. The input argument
must be of type raw
or string
. If dat
is numeric
(vector) it is converted to raw
.
Value
The status of success 'DONE' or 'Nothing to do' is returned.
See Also
Examples
# See the top package documentation
## Not run: write.serialConnection(con, 'Hello World!')
[Package serial version 3.0 Index]