@@ -40,7 +40,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
4040 WHEN (" A boolean property is changed via CBOR message" )
4141 {
4242 PropertyContainer property_container;
43-
43+
4444 CloudBool test = true ;
4545 addPropertyToContainer (property_container, test, " test" , Permission::ReadWrite);
4646
@@ -58,7 +58,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
5858 {
5959 /* An integer identifier has been encoded instead of the name of the property in order to have a shorter payload*/
6060 PropertyContainer property_container;
61-
61+
6262 CloudBool test = true ;
6363 /* The property is added with identifier 1 that will be used instead of the string "test" as property identifier*/
6464 addPropertyToContainer (property_container, test, " test" , Permission::ReadWrite, 1 );
@@ -76,7 +76,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
7676 WHEN (" A positive int property is changed via CBOR message" )
7777 {
7878 PropertyContainer property_container;
79-
79+
8080 CloudInt test = 0 ;
8181 addPropertyToContainer (property_container, test, " test" , Permission::ReadWrite);
8282
@@ -91,7 +91,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
9191 WHEN (" A negative int property is changed via CBOR message" )
9292 {
9393 PropertyContainer property_container;
94-
94+
9595 CloudInt test = 0 ;
9696 addPropertyToContainer (property_container, test, " test" , Permission::ReadWrite);
9797
@@ -108,7 +108,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
108108 WHEN (" A float property is changed via CBOR message" )
109109 {
110110 PropertyContainer property_container;
111-
111+
112112 CloudFloat test = 0 .0f ;
113113 addPropertyToContainer (property_container, test, " test" , Permission::ReadWrite);
114114
@@ -125,7 +125,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
125125 WHEN (" A String property is changed via CBOR message" )
126126 {
127127 PropertyContainer property_container;
128-
128+
129129 CloudString str_test;
130130 str_test = " test" ;
131131 addPropertyToContainer (property_container, str_test, " test" , Permission::ReadWrite);
@@ -142,7 +142,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
142142 WHEN (" A Location property is changed via CBOR message" )
143143 {
144144 PropertyContainer property_container;
145-
145+
146146 CloudLocation location_test = CloudLocation (0 , 1 );
147147 addPropertyToContainer (property_container, location_test, " test" , Permission::ReadWrite);
148148
@@ -160,7 +160,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
160160 WHEN (" A Color property is changed via CBOR message" )
161161 {
162162 PropertyContainer property_container;
163-
163+
164164 CloudColor color_test = CloudColor (0.0 , 0.0 , 0.0 );
165165
166166 addPropertyToContainer (property_container, color_test, " test" , Permission::ReadWrite);
@@ -184,7 +184,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
184184 {
185185 /* An integer identifier has been encoded instead of the name of the property in order to have a shorter payload*/
186186 PropertyContainer property_container;
187-
187+
188188 CloudColor color_test = CloudColor (0.0 , 0.0 , 0.0 );
189189
190190 /* The property is added with identifier 1 that will be used instead of the string "test" as property identifier*/
@@ -208,7 +208,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
208208 WHEN (" A ColoredLight property is changed via CBOR message" )
209209 {
210210 PropertyContainer property_container;
211-
211+
212212 CloudColoredLight color_test = CloudColoredLight (false , 0.0 , 0.0 , 0.0 );
213213
214214 addPropertyToContainer (property_container, color_test, " test" , Permission::ReadWrite);
@@ -232,7 +232,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
232232 WHEN (" A Television property is changed via CBOR message" )
233233 {
234234 PropertyContainer property_container;
235-
235+
236236 CloudTelevision tv_test = CloudTelevision (false , 0 , false , PlaybackCommands::Stop, InputValue::AUX1, 0 );
237237
238238 addPropertyToContainer (property_container, tv_test, " test" , Permission::ReadWrite);
@@ -258,7 +258,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
258258 WHEN (" A DimmedLight property is changed via CBOR message" )
259259 {
260260 PropertyContainer property_container;
261-
261+
262262 CloudDimmedLight light_test = CloudDimmedLight (false , 0.0 );
263263
264264 addPropertyToContainer (property_container, light_test, " test" , Permission::ReadWrite);
@@ -280,7 +280,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
280280 WHEN (" A Light property is changed via CBOR message" )
281281 {
282282 PropertyContainer property_container;
283-
283+
284284 CloudLight light_test;
285285 light_test = false ;
286286
@@ -298,7 +298,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
298298 WHEN (" A ContactSensor property is changed via CBOR message" )
299299 {
300300 PropertyContainer property_container;
301-
301+
302302 CloudContactSensor contact_test;
303303 contact_test = false ;
304304
@@ -316,7 +316,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
316316 WHEN (" A MotionSensor property is changed via CBOR message" )
317317 {
318318 PropertyContainer property_container;
319-
319+
320320 CloudMotionSensor motion_test;
321321 motion_test = false ;
322322
@@ -334,7 +334,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
334334 WHEN (" A SmartPlug property is changed via CBOR message" )
335335 {
336336 PropertyContainer property_container;
337-
337+
338338 CloudSmartPlug plug_test;
339339 plug_test = false ;
340340
@@ -352,7 +352,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
352352 WHEN (" A Switch property is changed via CBOR message" )
353353 {
354354 PropertyContainer property_container;
355-
355+
356356 CloudSwitch switch_test;
357357 switch_test = false ;
358358
@@ -370,7 +370,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
370370 WHEN (" A Temperature property is changed via CBOR message" )
371371 {
372372 PropertyContainer property_container;
373-
373+
374374 CloudTemperatureSensor test;
375375 test = 0 .0f ;
376376 addPropertyToContainer (property_container, test, " test" , Permission::ReadWrite);
@@ -417,8 +417,8 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
417417 CBORDecoder::decode (property_container, payload, sizeof (payload) / sizeof (uint8_t ));
418418
419419 Schedule schedule_compare = Schedule (1633305600 , 1633651200 , 600 , 1140850708 );
420- Schedule value_schedule_test = schedule_test.getValue ();
421-
420+ Schedule value_schedule_test = schedule_test.getValue ();
421+
422422 bool verify = (value_schedule_test == schedule_compare);
423423 REQUIRE (verify);
424424 REQUIRE (value_schedule_test.frm == schedule_compare.frm );
@@ -434,7 +434,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
434434 WHEN (" Multiple properties of different type are changed via CBOR message" )
435435 {
436436 PropertyContainer property_container;
437-
437+
438438 CloudBool bool_test = false ;
439439 CloudInt int_test = 1 ;
440440 CloudFloat float_test = 2 .0f ;
@@ -463,7 +463,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
463463 WHEN (" Multiple properties of different type are synchronized via CBOR message. FORCE_CLOUD_SYNC is passed as synchronization function and as a consequence values contained in the incoming message are stored in the properties" )
464464 {
465465 PropertyContainer property_container;
466-
466+
467467 CloudBool bool_test = false ;
468468 CloudInt int_test = 1 ;
469469 CloudFloat float_test = 2 .0f ;
@@ -492,7 +492,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
492492 WHEN (" Multiple primitive properties of different type are synchronized via CBOR message. FORCE_CLOUD_SYNC is passed as synchronization function and as a consequence values contained in the incoming message are stored in the properties" )
493493 {
494494 PropertyContainer property_container;
495-
495+
496496 int int_test = 1 ;
497497 bool bool_test = false ;
498498 float float_test = 2 .0f ;
@@ -528,7 +528,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
528528 WHEN (" Multiple String properties are changed via CBOR message" )
529529 {
530530 PropertyContainer property_container;
531-
531+
532532 CloudString str_1 (" hello" ),
533533 str_2 (" arduino" ),
534534 str_3 (" cloud" ),
@@ -557,7 +557,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
557557 WHEN (" A payload containing a CBOR base name is parsed" )
558558 {
559559 PropertyContainer property_container;
560-
560+
561561 CloudString str = " hello" ;
562562 addPropertyToContainer (property_container, str, " test" , Permission::ReadWrite);
563563
@@ -573,7 +573,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
573573 WHEN (" A payload containing a CBOR base time is parsed" )
574574 {
575575 PropertyContainer property_container;
576-
576+
577577 CloudInt test = 0 ;
578578 addPropertyToContainer (property_container, test, " test" , Permission::ReadWrite);
579579
@@ -589,7 +589,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
589589 WHEN (" A payload containing a CBOR time is parsed" )
590590 {
591591 PropertyContainer property_container;
592-
592+
593593 CloudInt test = 0 ;
594594 addPropertyToContainer (property_container, test, " test" , Permission::ReadWrite);
595595
@@ -605,7 +605,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
605605 WHEN (" A payload containing a CBOR BaseVersion is parsed" )
606606 {
607607 PropertyContainer property_container;
608-
608+
609609 CloudInt test = 0 ;
610610 addPropertyToContainer (property_container, test, " test" , Permission::ReadWrite);
611611
@@ -621,7 +621,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
621621 WHEN (" A payload containing a CBOR BaseName, BaseTime and Time is parsed" )
622622 {
623623 PropertyContainer property_container;
624-
624+
625625 CloudInt test = 0 ;
626626 addPropertyToContainer (property_container, test, " test" , Permission::ReadWrite);
627627
@@ -639,7 +639,7 @@ SCENARIO("Arduino Cloud Properties are decoded", "[ArduinoCloudThing::decode]")
639639 WHEN (" A payload containing a invalid CBOR key is parsed" )
640640 {
641641 PropertyContainer property_container;
642-
642+
643643 CloudInt test = 0 ;
644644 addPropertyToContainer (property_container, test, " test" , Permission::ReadWrite);
645645
0 commit comments