write.serialConnection {serial} | R Documentation |
Writes to a serial connection in ascii or binary mode.
write.serialConnection(con,dat)
con |
serial Connection |
dat |
data string to write on the serial interface. This must be a string
|
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
.
The status of success 'DONE' or 'Nothing to do' is returned.
# See the top package documentation
## Not run: write.serialConnection(con, 'Hello World!')