Skip to content

Commit 591a02a

Browse files
committed
Fix formatting error
1 parent 8874009 commit 591a02a

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

Diff for: examples/MultiValue_example/MultiValue_example.ino

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

4848
void 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
}

Diff for: examples/MultiValue_example/thingProperties.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ bool Switch;
1414
CloudLocation Loc;
1515
CloudColor Color;
1616

17-
void initProperties(){
17+
void initProperties() {
1818
ArduinoCloud.setThingId(THING_ID);
1919
ArduinoCloud.addProperty(Switch, READWRITE, ON_CHANGE, onSwitchChange);
2020
ArduinoCloud.addProperty(Loc, READ, ON_CHANGE, NULL);

0 commit comments

Comments
 (0)