Skip to content

Commit e283233

Browse files
committed
Fix example header and cosmetics
1 parent 4353f9e commit e283233

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

Diff for: examples/ArduinoIoTCloud-AWS-Basic/ArduinoIoTCloud-AWS-Basic.ino

+2-13
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
#include "arduino_secrets.h"
22
/*
3-
This sketch demonstrates how to exchange data between your board and the Arduino IoT Cloud.
4-
5-
* Connect a potentiometer (or other analog sensor) to A0.
6-
* When the potentiometer (or sensor) value changes the data is sent to the Cloud.
7-
* When you flip the switch in the Cloud dashboard the onboard LED lights gets turned ON or OFF.
8-
9-
IMPORTANT:
10-
This sketch works with WiFi, GSM, NB, Ethernet and Lora enabled boards supported by Arduino IoT Cloud.
11-
On a LoRa board, if it is configured as a class A device (default and preferred option),
12-
values from Cloud dashboard are received only after a value is sent to Cloud.
3+
This sketch demonstrates how to connect to ArduinoIoTCloud and AWS IoT core.
134
145
The full list of compatible boards can be found here:
156
- https://github.com/arduino-libraries/ArduinoIoTCloud#what
@@ -20,7 +11,7 @@
2011

2112
Client& getDefaultClient() {
2213
switch(ArduinoIoTPreferredConnection.getInterface()) {
23-
14+
2415
#ifdef BOARD_HAS_WIFI
2516
case NetworkAdapter::WIFI:
2617
static WiFiClient client;
@@ -37,8 +28,6 @@ Client& getDefaultClient() {
3728
Serial.println("Error: could not create default AWS client");
3829
break;
3930
}
40-
41-
4231
}
4332

4433
unsigned long publishMillis = 0;

Diff for: examples/ArduinoIoTCloud-AWS-Basic/thingProperties.h

-1
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ void initProperties() {
1919
}
2020

2121
WiFiConnectionHandler ArduinoIoTPreferredConnection(SECRET_SSID, SECRET_OPTIONAL_PASS);
22-

0 commit comments

Comments
 (0)