ar_monitor: Stream serial port data into R console

Description Usage Arguments

View source: R/ar_monitor.R

Description

This function wraps around ar_read() and will read serial port data into R console until user stop it.

Usage

1
2
ar_monitor(fd, flush_time = 0.5, eolchar = "\n", buf_max = 256,
  timeout = 5000)

Arguments

fd

File descriptor returned by ar_init(). Should be an integer.

flush_time

Time to flush buffed results in the serial channel

eolchar

End of line character. Default value is '\n'

buf_max

Maximum length of one line of entry. Default is 256.

timeout

Timeout for reads in millisecs. Default is 5000 ms.


hebrewseniorlife/arduinor documentation built on May 24, 2019, 8:51 a.m.