Add BME280 Sensor

- Plumb BME280 all the way through to Prometheus.
- Add README detailing the diff between BME280 and BMP280
- Refactor source files to be *_drv.c to avoid naming clashes with
  upstream libraries.
This commit is contained in:
Pim van Pelt
2018-03-26 15:07:17 +02:00
parent fb87c4070a
commit a7b78521f1
6 changed files with 87 additions and 53 deletions

View File

@ -20,6 +20,8 @@ config_schema:
- ["sensors.dht_period", "i", 3, {title: "Sample period in seconds for DHT sensors"}]
- ["sensors.veml6075_i2caddr", "i", 0x10, {title: "I2C Address for VEML6075 sensor"}]
- ["sensors.veml6075_period", "i", 3, {title: "Sample period in seconds for VEML6075 sensor"}]
- ["sensors.bme280_i2caddr", "i", 0x77, {title: "I2C Address for BME280 sensor"}]
- ["sensors.bme280_period", "i", 3, {title: "Sample period in seconds for BME280 sensor"}]
- ["sensors.pushgateway_period", "i", 10, {title: "Period in seconds for Prometheus Pushgateway POSTs"}]
- ["prometheus.pushgateway", "prometheus.example.net:9091"]
@ -28,6 +30,7 @@ config_schema:
# Note: To use sensor libraries, include one or more of these in your application mos.yml:
# - origin: https://github.com/mongoose-os-libs/dht
# - origin: https://github.com/mongoose-os-libs/veml6075-i2c
# - origin: https://github.com/mongoose-os-libs/bme280
libs:
- origin: https://github.com/mongoose-os-libs/prometheus-metrics