Description Usage Arguments Methods (by class) Examples
Reads the data of a given sensor instance.
1 2 3 4 | read_sensor(x, ...)
## S4 method for signature 'DHT11'
read_sensor(x, max_retries = 10, ...)
|
x |
A sensor instance. |
... |
further arguments passed to or from other methods. |
max_retries |
A numeric of length one indicating how many times it should retry in case of issues. |
DHT11
:
1 2 3 4 5 6 7 | ## Not run:
# Get a DHT11 sensor instance connected at GPIO 14.
dht11 <- get_dht11_sensor(14)
# Read the sensor's data.
read_sensor(dht11)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.