forked from arduino-libraries/ArduinoIoTCloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathArduinoIoTCloud_Travis_CI.ino
50 lines (36 loc) · 1.23 KB
/
ArduinoIoTCloud_Travis_CI.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*
This sketch is used in combination with Travis CI to check if
unintentional breaking changes are made to the user facing
Arduino IoT Cloud API.
IMPORTANT:
This sketch works with WiFi, GSM, NB, Ethernet and Lora enabled boards supported by Arduino IoT Cloud.
On a LoRa board, if it is configured as a class A device (default and preferred option),
values from Cloud dashboard are received only after a value is sent to Cloud.
The full list of compatible boards can be found here:
- https://github.com/arduino-libraries/ArduinoIoTCloud#what
*/
#include "thingProperties.h"
void setup() {
Serial.begin(9600);
unsigned long serialBeginTime = millis();
while (!Serial && (millis() - serialBeginTime > 5000));
Serial.println("Starting Arduino IoT Cloud Example");
initProperties();
ArduinoCloud.begin(ArduinoIoTPreferredConnection);
ArduinoCloud.printDebugInfo();
}
void loop() {
ArduinoCloud.update();
}
void onBoolPropertyChange() {
Serial.println("'onBoolPropertyChange'");
}
void onIntPropertyChange() {
Serial.println("'onIntPropertyChange'");
}
void onFloatPropertyChange() {
Serial.println("'onFloatPropertyChange'");
}
void onStringPropertyChange() {
Serial.println("'onStringPropertyChange'");
}