Expand description

DHT Logger

This crate is for logging measurement from a device reading DHT sensors and writing the measurements over a serial connection. The hardware producing the data does not matter, but it must be logging data over serial in JSON with fields for temperature, humidity, and heat index. Here’s a pretty version of an example reading:

{
  "sensor_label": {
    "t": 20.0,
    "h": 50.0,
    "hi": 20.0
  },
  "another_sensor": {
    "error": "some error message"
  }
}

This code has been tested using arduino-dht-logger as the hardware source providing data over serial.

Re-exports

pub use messages::Measurement;
pub use messages::SensorData;

Modules

Serializable messages representing DHT sensor data.

Structs

DHT Logger client.

Configuration of a DHT Logger client.

Type Definitions

Contain results with std::io::Error as the Error implementation.