Skip to content

Commit dfb452a

Browse files
committed
Define BOARD_ID only for ESP boards
1 parent c158225 commit dfb452a

File tree

6 files changed

+18
-7
lines changed

6 files changed

+18
-7
lines changed

examples/ArduinoIoTCloud-Advanced/thingProperties.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
#error "Please check Arduino IoT Cloud supported boards list: https://github.com/arduino-libraries/ArduinoIoTCloud/#what"
77
#endif
88

9-
#define BOARD_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
9+
#if defined(BOARD_ESP)
10+
#define BOARD_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
11+
#endif
1012

1113
void onSwitchButtonChange();
1214
void onColorChange();

examples/ArduinoIoTCloud-Basic/thingProperties.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
#error "Please check Arduino IoT Cloud supported boards list: https://github.com/arduino-libraries/ArduinoIoTCloud/#what"
77
#endif
88

9-
#define BOARD_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
9+
#if defined(BOARD_ESP)
10+
#define BOARD_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
11+
#endif
1012

1113
void onLedChange();
1214

examples/ArduinoIoTCloud-Callbacks/thingProperties.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
#error "Please check Arduino IoT Cloud supported boards list: https://github.com/arduino-libraries/ArduinoIoTCloud/#what"
77
#endif
88

9-
/* BOARD_ID is only required if you are using an ESP8266 */
10-
#define BOARD_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
9+
#if defined(BOARD_ESP)
10+
#define BOARD_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
11+
#endif
1112

1213
void initProperties() {
1314
#if defined(BOARD_ESP)

examples/ArduinoIoTCloud-DeferredOTA/thingProperties.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
#error "Please check Arduino IoT Cloud supported boards list: https://github.com/arduino-libraries/ArduinoIoTCloud/#what"
77
#endif
88

9-
#define BOARD_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
9+
#if defined(BOARD_ESP)
10+
#define BOARD_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
11+
#endif
1012

1113
void onLedChange();
1214

examples/ArduinoIoTCloud-Schedule/thingProperties.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
#error "Please check Arduino IoT Cloud supported boards list: https://github.com/arduino-libraries/ArduinoIoTCloud/#what"
77
#endif
88

9-
#define BOARD_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
9+
#if defined(BOARD_ESP)
10+
#define BOARD_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
11+
#endif
1012

1113
void onSwitchButtonChange();
1214

examples/utility/ArduinoIoTCloud_Travis_CI/thingProperties.h

+3-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
DEFINES
1111
******************************************************************************/
1212

13-
#define BOARD_ID "ARDUINO_IOT_CLOUD_BOARD_ID"
13+
#if defined(BOARD_ESP)
14+
#define BOARD_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
15+
#endif
1416

1517
/******************************************************************************
1618
GLOBAL CONSTANTS

0 commit comments

Comments
 (0)