1
1
#include " arduino_secrets.h"
2
- /*
2
+ /*
3
3
Sketch generated by the Arduino IoT Cloud Thing "Test_MultiValue"
4
- https://create-dev.arduino.cc/cloud/things/06012290-ec85-4f5c-aa00-81c0525efa0c
4
+ https://create-dev.arduino.cc/cloud/things/06012290-ec85-4f5c-aa00-81c0525efa0c
5
5
6
6
Arduino IoT Cloud Properties description
7
7
@@ -20,21 +20,21 @@ void setup() {
20
20
// Initialize serial and wait for port to open:
21
21
Serial.begin (9600 );
22
22
// This delay gives the chance to wait for a Serial Monitor without blocking if none is found
23
- delay (1500 );
23
+ delay (1500 );
24
24
25
25
// Defined in thingProperties.h
26
26
initProperties ();
27
27
28
28
// Connect to Arduino IoT Cloud
29
29
ArduinoCloud.begin (ArduinoIoTPreferredConnection, " mqtts-sa.iot.oniudra.cc" );
30
-
30
+
31
31
/*
32
32
The following function allows you to obtain more information
33
33
related to the state of network and IoT Cloud connection and errors
34
34
the higher number the more granular information you’ll get.
35
35
The default is 0 (only errors).
36
36
Maximum is 4
37
- */
37
+ */
38
38
setDebugMessageLevel (2 );
39
39
ArduinoCloud.printDebugInfo ();
40
40
}
@@ -47,15 +47,15 @@ float hueGreen = 80.0, satGreen = 100.0, briGreen = 100.0;
47
47
48
48
void loop () {
49
49
ArduinoCloud.update ();
50
- // Your code here
50
+ // Your code here
51
51
52
52
Switch = !Switch;
53
53
if (Switch) {
54
- Loc = { .lat = latMov, .lon = lonMov };
55
- Color = { .hue = hueRed, .sat = satRed, .bri = briRed };
54
+ Loc = { .lat = latMov, .lon = lonMov };
55
+ Color = { .hue = hueRed, .sat = satRed, .bri = briRed };
56
56
} else {
57
- Loc = { .lat = latArd, .lon = lonArd };
58
- Color = { .hue = hueGreen, .sat = satGreen, .bri = briGreen };
57
+ Loc = { .lat = latArd, .lon = lonArd };
58
+ Color = { .hue = hueGreen, .sat = satGreen, .bri = briGreen };
59
59
}
60
60
delay (5000 );
61
61
}
0 commit comments