@@ -96,11 +96,11 @@ void setup() {
96
96
DimmableLight.onChange (setLightState);
97
97
98
98
// lambda functions are used to set the attribute change callbacks
99
- DimmableLight.onChangeOnOff ([](bool state) {
100
- Serial.printf (" Light OnOff changed to %s\r\n " , state ? " ON" : " OFF" );
99
+ DimmableLight.onChangeOnOff ([](bool state) {
100
+ Serial.printf (" Light OnOff changed to %s\r\n " , state ? " ON" : " OFF" );
101
101
return true ;
102
102
});
103
- DimmableLight.onChangeBrightness ([](uint8_t level) {
103
+ DimmableLight.onChangeBrightness ([](uint8_t level) {
104
104
Serial.printf (" Light Brightness changed to %d\r\n " , level);
105
105
return true ;
106
106
});
@@ -111,7 +111,7 @@ void setup() {
111
111
if (Matter.isDeviceCommissioned ()) {
112
112
Serial.println (" Matter Node is commissioned and connected to Wi-Fi. Ready for use." );
113
113
Serial.printf (" Initial state: %s | brightness: %d\r\n " , DimmableLight ? " ON" : " OFF" , DimmableLight.getBrightness ());
114
- // configure the Light based on initial on-off state and brightness
114
+ // configure the Light based on initial on-off state and brightness
115
115
DimmableLight.updateAccessory ();
116
116
}
117
117
}
@@ -139,7 +139,7 @@ void loop() {
139
139
}
140
140
}
141
141
Serial.printf (" Initial state: %s | brightness: %d\r\n " , DimmableLight ? " ON" : " OFF" , DimmableLight.getBrightness ());
142
- // configure the Light based on initial on-off state and brightness
142
+ // configure the Light based on initial on-off state and brightness
143
143
DimmableLight.updateAccessory ();
144
144
Serial.println (" Matter Node is commissioned and connected to Wi-Fi. Ready for use." );
145
145
}
0 commit comments