You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/arduino-cloud/01.getting-started/06.cloud-variables/cloud-variables.md
+26-11Lines changed: 26 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -182,6 +182,19 @@ You can use them just like a normal variable of the wrapped type, since they sup
182
182
183
183
The following variable types hold multiple values internally and are used to represent more complex data. In order to access such values, methods are provided.
184
184
185
+
#### CloudSchedule
186
+
187
+
`CloudSchedule` is used to check for an active state or to retrieve the timestamp.
| Color |`uint8_t` (0-255) |`x.getRGB(r,g,b)`|`x.setRGB(r,g,b)`|
204
218
205
219
#### CloudColor
206
220
207
221
Declared as `CloudColor x;`.
208
222
209
223
To read the Color values, we can use the following method `Color colorValues = x.getValue();`. This will assign the hue, saturation, and brightness values to the `colorValues` variable.
| Color |`uint8_t` (0-255) |`x.getRGB(r,g,b)`|`x.set(r,g,b)`|
216
231
217
232
To set the color, we can assign the CloudColor variable directly to float variables `x = {hue,saturation,brightness}`, or using the method ` x = Color(hue,saturation,brightness)`.
0 commit comments