Commit Graph

6 Commits

Author SHA1 Message Date
bd432136cd Tagcopyrights, add contributing / licensing information 2018-11-19 00:18:17 +01:00
075dca9f0e Refactor includes 2018-11-18 23:49:09 +01:00
096192138c Code Formatting (uncrustify) 2018-04-09 19:44:04 +02:00
9067ab01dd Format code (BCPP) 2018-04-09 19:06:32 +02:00
f43dea1d7b Add DHT temp/humidity getters.
+float mgos_prometheus_sensors_dht_get_temp(uint8_t idx);
+float mgos_prometheus_sensors_dht_get_humidity(uint8_t idx);

They return NAN if the index is invalid, or the sensor couldn't be
found. Otherwise, they return the last measured temperature or humidity
values as floats.
2018-03-04 17:01:17 +01:00
1ff7642bea Initial Checkin.
Only DHT (AM3202) supported at this time.
2018-03-04 16:11:07 +01:00