Description Usage Arguments Details Value See Also Examples
Writes to a serial connection in ascii or binary mode.
1 | 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.
1 2 3 | # See the top package documentation
## Not run: write.serialConnection(con, 'Hello World!')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.