Skip to content

Commit 0552d79

Browse files
committed
Show supported board list url when building for unsupported board
1 parent c9219f1 commit 0552d79

File tree

6 files changed

+20
-4
lines changed

6 files changed

+20
-4
lines changed

examples/ArduinoIoTCloud-Advanced/thingProperties.h

+8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
#include <ArduinoIoTCloud.h>
22
#include <Arduino_ConnectionHandler.h>
33

4+
#if defined(BOARD_HAS_WIFI)
5+
#elif defined(BOARD_HAS_GSM)
6+
#elif defined(BOARD_HAS_LORA)
7+
#elif defined(BOARD_HAS_NB)
8+
#else
9+
#error "Please check Arduino IoT Cloud supported boards list: https://github.com/arduino-libraries/ArduinoIoTCloud/#what"
10+
#endif
11+
412
#define BOARD_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
513

614
void onSwitchButtonChange();

examples/ArduinoIoTCloud-Basic/thingProperties.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#elif defined(BOARD_HAS_LORA)
77
#elif defined(BOARD_HAS_NB)
88
#else
9-
#error "Arduino IoT Cloud currently only supports MKR1000, MKR WiFi 1010, MKR WAN 1300/1310, MKR NB 1500 and MKR GSM 1400"
9+
#error "Please check Arduino IoT Cloud supported boards list: https://github.com/arduino-libraries/ArduinoIoTCloud/#what"
1010
#endif
1111

1212
#define BOARD_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

examples/ArduinoIoTCloud-Callbacks/thingProperties.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#elif defined(BOARD_HAS_LORA)
77
#elif defined(BOARD_HAS_NB)
88
#else
9-
#error "Arduino IoT Cloud currently only supports MKR1000, MKR WiFi 1010, MKR WAN 1300/1310, MKR NB 1500 and MKR GSM 1400"
9+
#error "Please check Arduino IoT Cloud supported boards list: https://github.com/arduino-libraries/ArduinoIoTCloud/#what"
1010
#endif
1111

1212
/* BOARD_ID is only required if you are using an ESP8266 */

examples/ArduinoIoTCloud-DeferredOTA/thingProperties.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#elif defined(BOARD_HAS_LORA)
77
#elif defined(BOARD_HAS_NB)
88
#else
9-
#error "Arduino IoT Cloud currently only supports MKR1000, MKR WiFi 1010, MKR WAN 1300/1310, MKR NB 1500 and MKR GSM 1400"
9+
#error "Please check Arduino IoT Cloud supported boards list: https://github.com/arduino-libraries/ArduinoIoTCloud/#what"
1010
#endif
1111

1212
#define BOARD_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

examples/ArduinoIoTCloud-Schedule/thingProperties.h

+8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
#include <ArduinoIoTCloud.h>
22
#include <Arduino_ConnectionHandler.h>
33

4+
#if defined(BOARD_HAS_WIFI)
5+
#elif defined(BOARD_HAS_GSM)
6+
#elif defined(BOARD_HAS_LORA)
7+
#elif defined(BOARD_HAS_NB)
8+
#else
9+
#error "Please check Arduino IoT Cloud supported boards list: https://github.com/arduino-libraries/ArduinoIoTCloud/#what"
10+
#endif
11+
412
#define BOARD_ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
513

614
void onSwitchButtonChange();

examples/utility/ArduinoIoTCloud_Travis_CI/thingProperties.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#elif defined(BOARD_HAS_LORA)
1111
#elif defined(BOARD_HAS_NB)
1212
#else
13-
#error "Arduino IoT Cloud currently only supports MKR1000, MKR WiFi 1010, MKR WAN 1300/1310, MKR NB 1500 and MKR GSM 1400"
13+
#error "Please check Arduino IoT Cloud supported boards list: https://github.com/arduino-libraries/ArduinoIoTCloud/#what"
1414
#endif
1515

1616
/******************************************************************************

0 commit comments

Comments
 (0)