Skip to content

Commit cb7fbe1

Browse files
committed
draft
1 parent 428dd37 commit cb7fbe1

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
title: 'IoT Cloud Event & Callbacks'
3+
description: 'Learn how to subscribe to events and add callback functions.'
4+
tags: [IoT Cloud, Variables]
5+
author: 'Karl Söderby'
6+
---
7+
8+
The [Arduino IoT Cloud](https://create.arduino.cc/iot/) has support for events and callbacks. This can be used to trigger specific functionalities depending on what state your device is in.
9+
10+
You can for example trigger a specific block of code whenever the board is in a connecting, synchronized or disconnected state. In this brief document, we will explore how to set it up, using an example from the [ArduinoIoTCloud](https://github.com/arduino-libraries/ArduinoIoTCloud/blob/master/examples/ArduinoIoTCloud-Callbacks/ArduinoIoTCloud-Callbacks.ino) library.
11+
12+
## Full Example
13+
14+
The example below demonstrates the available callback
15+
16+
## Summary
17+
18+
In this article, we have covered how to use variables in the Arduino IoT Cloud, and what variables are available.
19+

0 commit comments

Comments
 (0)