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/03.cloud-interface/00.sketches/sketches.md
+5
Original file line number
Diff line number
Diff line change
@@ -70,6 +70,11 @@ The sketch file is generated with a set of additional Cloud-specific methods inc
70
70
-`ArduinoCloud.begin()` starts the library with the preferred connection (e.g. Wi-Fi® or LoRaWAN®).
71
71
-`ArduinoCloud.update()` - synchronizes all data between the board and the Arduino Cloud.
72
72
73
+
There are a few different options when it comes to synchronization of your cloud sketch:
74
+
-`MOST_RECENT_WINS` - Best for real-time applications where the latest data should always be used, regardless of source.
75
+
-`CLOUD_WINS` - Useful when the cloud holds critical configurations or settings that should always be enforced on the device.
76
+
-`DEVICE_WINS` - Used when the device generates important real-time data (sensor readings) that should always be preserved over cloud updates.
77
+
73
78
In addition, any variable created with a read/write permission will also generate a callback function that executes whenever the variable's value changes.
74
79
- If you create a variable called `test`, the function will render as `void onTestChange(){}`
0 commit comments