This function wraps around ar_read()
and will read serial
port data into R console until user stop it.
1 2 | ar_collect(fd, size = 100, flush_time = 0.5, eolchar = "\n",
buf_max = 256, timeout = 5000)
|
fd |
File descriptor returned by |
size |
Size |
flush_time |
Time to flush buffed results in the serial channel |
eolchar |
End of line character. Default value is |
buf_max |
Maximum length of one line of entry. Default is 256. |
timeout |
Timeout for reads in millisecs. Default is 5000 ms. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.