11#include " arduino_secrets.h"
2- /*
2+ /*
33 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
55
66 Arduino IoT Cloud Properties description
77
@@ -20,21 +20,21 @@ void setup() {
2020 // Initialize serial and wait for port to open:
2121 Serial.begin (9600 );
2222 // This delay gives the chance to wait for a Serial Monitor without blocking if none is found
23- delay (1500 );
23+ delay (1500 );
2424
2525 // Defined in thingProperties.h
2626 initProperties ();
2727
2828 // Connect to Arduino IoT Cloud
2929 ArduinoCloud.begin (ArduinoIoTPreferredConnection, " mqtts-sa.iot.oniudra.cc" );
30-
30+
3131 /*
3232 The following function allows you to obtain more information
3333 related to the state of network and IoT Cloud connection and errors
3434 the higher number the more granular information you’ll get.
3535 The default is 0 (only errors).
3636 Maximum is 4
37- */
37+ */
3838 setDebugMessageLevel (2 );
3939 ArduinoCloud.printDebugInfo ();
4040}
@@ -47,15 +47,15 @@ float hueGreen = 80.0, satGreen = 100.0, briGreen = 100.0;
4747
4848void loop () {
4949 ArduinoCloud.update ();
50- // Your code here
50+ // Your code here
5151
5252 Switch = !Switch;
5353 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 };
5656 } 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 };
5959 }
6060 delay (5000 );
6161}
0 commit comments