From da0040b16063cfa63b061b297ae7a9fb718c61ff Mon Sep 17 00:00:00 2001 From: henfri Date: Sat, 14 Sep 2019 13:42:26 +0200 Subject: [PATCH] Update knx-bme680.ino Remark for .iaq vs. .iaqEstimate for BSEC_1.4.7.4 --- examples/knx-bme680/knx-bme680.ino | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/knx-bme680/knx-bme680.ino b/examples/knx-bme680/knx-bme680.ino index 566c0fc..ce33a15 100644 --- a/examples/knx-bme680/knx-bme680.ino +++ b/examples/knx-bme680/knx-bme680.ino @@ -1,4 +1,5 @@ // used version: BSEC_1.4.7.3_Generic_Release_20190410 +// 2 changes needed for version: BSEC_1.4.7.4_Generic_Release see below #include #include #ifdef ARDUINO_ARCH_ESP8266 @@ -135,7 +136,7 @@ void loop(void) output += ", " + String(iaqSensor.rawHumidity); output += ", " + String(iaqSensor.humidity); output += ", " + String(iaqSensor.gasResistance); - output += ", " + String(iaqSensor.iaq); + output += ", " + String(iaqSensor.iaq); //.iaqEstimate for BSEC_1.4.7.4 output += ", " + String(iaqSensor.iaqAccuracy); output += ", " + String(iaqSensor.co2Equivalent); output += ", " + String(iaqSensor.co2Accuracy); @@ -162,7 +163,7 @@ void loop(void) goPressure.value(iaqSensor.pressure); goRawHumidity.value(iaqSensor.rawHumidity); goGasResistance.value(iaqSensor.gasResistance); - goIaqEstimate.value(iaqSensor.iaq); + goIaqEstimate.value(iaqSensor.iaq); //.iaqEstimate for BSEC_1.4.7.4 goIaqAccurace.value(iaqSensor.iaqAccuracy); goTemperature.value(iaqSensor.temperature); goHumidity.value(iaqSensor.humidity);