sds011_read: Read from a serial interface connection to the SDS011 device

Description Usage Arguments Value Examples

View source: R/sds011.R

Description

Read from a serial interface connection to the SDS011 device

Usage

1
2
3
sds011_read(con = sds011_connect(), n = 0)

sds011_read_int(con = sds011_connect(), n = 0, interval = 5)

Arguments

con

A serial connection to an SDS011 device connected via USB. Default is a call to sds011_connect().

n

Number of bytes to read. Only in binary mode. n=0 (default) reads the whole buffer at once.

interval

Reading interval in seconds. Default to 5 seconds.

Value

Readings from a serial interface connection to the SDS011 device

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
  sds011_read()

## End(Not run)

## Not run: 
  sds011_read_int()

## End(Not run)

ernestguevarra/rpi documentation built on March 16, 2021, 12:06 a.m.