This repository was archived by the owner on Aug 18, 2020. It is now read-only.
File tree 2 files changed +48
-0
lines changed
2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,38 @@ class CloudColoredLight : public CloudColor {
76
76
return _value;
77
77
}
78
78
79
+ bool getSwitch () {
80
+ return _value.swi ;
81
+ }
82
+
83
+ void setSwitch (bool const swi) {
84
+ _value.swi = swi;
85
+ }
86
+
87
+ float getHue () {
88
+ return _value.hue ;
89
+ }
90
+
91
+ void setHue (float const hue) {
92
+ _value.hue = hue;
93
+ }
94
+
95
+ float getSaturation () {
96
+ return _value.sat ;
97
+ }
98
+
99
+ void setSaturation (float const sat) {
100
+ _value.sat = sat;
101
+ }
102
+
103
+ float getBrightness () {
104
+ return _value.bri ;
105
+ }
106
+
107
+ void setBrightness (float const bri) {
108
+ _value.bri = bri;
109
+ }
110
+
79
111
virtual void fromCloudToLocal () {
80
112
_value = _cloud_value;
81
113
}
Original file line number Diff line number Diff line change @@ -75,6 +75,22 @@ class CloudDimmeredLight : public ArduinoCloudProperty {
75
75
return _value;
76
76
}
77
77
78
+ float getBrightness () {
79
+ return _value.bri ;
80
+ }
81
+
82
+ void setBrightness (float const bri) {
83
+ _value.bri = bri;
84
+ }
85
+
86
+ bool getSwitch () {
87
+ return _value.swi ;
88
+ }
89
+
90
+ void setSwitch (bool const swi) {
91
+ _value.swi = swi;
92
+ }
93
+
78
94
virtual void fromCloudToLocal () {
79
95
_value = _cloud_value;
80
96
}
You can’t perform that action at this time.
0 commit comments