diff --git a/examples/knx-demo/knx-demo.ino b/examples/knx-demo/knx-demo.ino index 13f4068..747eeb3 100644 --- a/examples/knx-demo/knx-demo.ino +++ b/examples/knx-demo/knx-demo.ino @@ -27,25 +27,25 @@ void measureTemp() currentValue *= 100 * 100; // write new value to groupobject - goCurrent.objectWriteFloatDpt9(currentValue); + goCurrent.value(currentValue); if (currentValue > maxValue) { maxValue = currentValue; - goMax.objectWriteFloatDpt9(maxValue); + goMax.value(maxValue); } if (currentValue < minValue) { minValue = currentValue; - goMin.objectWriteFloatDpt9(minValue); + goMin.value(minValue); } } // callback from reset-GO void resetCallback(GroupObject& go) { - if (go.objectReadBool()) + if (go.value().boolValue()) { maxValue = 0; minValue = 10000; @@ -105,4 +105,4 @@ void loop() return; measureTemp(); -} +} \ No newline at end of file