Skip to content

Commit 5bd7a1d

Browse files
authored
Merge pull request #412 from pennam/examples_web
Make examples build on cloud web editor
2 parents 0b1d248 + 2f4a756 commit 5bd7a1d

File tree

18 files changed

+32
-20
lines changed

18 files changed

+32
-20
lines changed

examples/ArduinoIoTCloud-Advanced/ArduinoIoTCloud-Advanced.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,13 @@
33
44
IMPORTANT:
55
This sketch works with WiFi, GSM, NB, Ethernet and Lora enabled boards supported by Arduino IoT Cloud.
6-
On a LoRa board, if it is configured as a class A device (default and preferred option), values from Cloud dashboard are received
7-
only after a value is sent to Cloud.
6+
On a LoRa board, if it is configured as a class A device (default and preferred option),
7+
values from Cloud dashboard are received only after a value is sent to Cloud.
88
99
The full list of compatible boards can be found here:
1010
- https://github.com/arduino-libraries/ArduinoIoTCloud#what
1111
*/
1212

13-
#include "arduino_secrets.h"
1413
#include "thingProperties.h"
1514

1615
void setup() {

examples/ArduinoIoTCloud-Advanced/arduino_secrets.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include <ArduinoIoTCloud.h>
21
#include <Arduino_ConnectionHandler.h>
32

43
/* A complete list of supported boards with WiFi is available here:

examples/ArduinoIoTCloud-Advanced/thingProperties.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#include <ArduinoIoTCloud.h>
2+
#include <Arduino_ConnectionHandler.h>
3+
#include "arduino_secrets.h"
4+
15
#if !(defined(BOARD_HAS_WIFI) || defined(BOARD_HAS_GSM) || defined(BOARD_HAS_LORA) || \
26
defined(BOARD_HAS_NB) || defined(BOARD_HAS_ETHERNET) || defined(BOARD_HAS_CATM1_NBIOT))
37
#error "Please check Arduino IoT Cloud supported boards list: https://github.com/arduino-libraries/ArduinoIoTCloud/#what"

examples/ArduinoIoTCloud-Basic/ArduinoIoTCloud-Basic.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,13 @@
77
88
IMPORTANT:
99
This sketch works with WiFi, GSM, NB, Ethernet and Lora enabled boards supported by Arduino IoT Cloud.
10-
On a LoRa board, if it is configured as a class A device (default and preferred option), values from Cloud dashboard are received
11-
only after a value is sent to Cloud.
10+
On a LoRa board, if it is configured as a class A device (default and preferred option),
11+
values from Cloud dashboard are received only after a value is sent to Cloud.
1212
1313
The full list of compatible boards can be found here:
1414
- https://github.com/arduino-libraries/ArduinoIoTCloud#what
1515
*/
1616

17-
#include "arduino_secrets.h"
1817
#include "thingProperties.h"
1918

2019
#if !defined(LED_BUILTIN) && !defined(ARDUINO_NANO_ESP32)

examples/ArduinoIoTCloud-Basic/arduino_secrets.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include <ArduinoIoTCloud.h>
21
#include <Arduino_ConnectionHandler.h>
32

43
/* A complete list of supported boards with WiFi is available here:

examples/ArduinoIoTCloud-Basic/thingProperties.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#include <ArduinoIoTCloud.h>
2+
#include <Arduino_ConnectionHandler.h>
3+
#include "arduino_secrets.h"
4+
15
#if !(defined(BOARD_HAS_WIFI) || defined(BOARD_HAS_GSM) || defined(BOARD_HAS_LORA) || \
26
defined(BOARD_HAS_NB) || defined(BOARD_HAS_ETHERNET) || defined(BOARD_HAS_CATM1_NBIOT))
37
#error "Please check Arduino IoT Cloud supported boards list: https://github.com/arduino-libraries/ArduinoIoTCloud/#what"

examples/ArduinoIoTCloud-Callbacks/ArduinoIoTCloud-Callbacks.ino

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@
1919
2020
IMPORTANT:
2121
This sketch works with WiFi, GSM, NB, Ethernet and Lora enabled boards supported by Arduino IoT Cloud.
22-
On a LoRa board, if it is configured as a class A device (default and preferred option), values from Cloud dashboard are received
23-
only after a value is sent to Cloud.
22+
On a LoRa board, if it is configured as a class A device (default and preferred option),
23+
values from Cloud dashboard are received only after a value is sent to Cloud.
2424
2525
The full list of compatible boards can be found here:
2626
- https://github.com/arduino-libraries/ArduinoIoTCloud#what
2727
*/
2828

29-
#include "arduino_secrets.h"
3029
#include "thingProperties.h"
3130

3231
void setup() {

examples/ArduinoIoTCloud-Callbacks/arduino_secrets.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include <ArduinoIoTCloud.h>
21
#include <Arduino_ConnectionHandler.h>
32

43
/* A complete list of supported boards with WiFi is available here:

examples/ArduinoIoTCloud-Callbacks/thingProperties.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
#include <ArduinoIoTCloud.h>
2+
#include <Arduino_ConnectionHandler.h>
3+
#include "arduino_secrets.h"
4+
15
#if !(defined(BOARD_HAS_WIFI) || defined(BOARD_HAS_GSM) || defined(BOARD_HAS_LORA) || \
26
defined(BOARD_HAS_NB) || defined(BOARD_HAS_ETHERNET) || defined(BOARD_HAS_CATM1_NBIOT))
37
#error "Please check Arduino IoT Cloud supported boards list: https://github.com/arduino-libraries/ArduinoIoTCloud/#what"

examples/ArduinoIoTCloud-DeferredOTA/ArduinoIoTCloud-DeferredOTA.ino

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
- https://github.com/arduino-libraries/ArduinoIoTCloud/#ota
1717
*/
1818

19-
#include "arduino_secrets.h"
2019
#include "thingProperties.h"
2120

2221
#if !defined(LED_BUILTIN) && !defined(ARDUINO_NANO_ESP32)

0 commit comments

Comments
 (0)