Skip to content

Commit 1f93f72

Browse files
committed
Adding support for MKR NB 1500 to 'ArduinoIoTCloud_Travis_CI'
1 parent 5846a2a commit 1f93f72

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

examples/ArduinoIoTCloud_Travis_CI/arduino_secrets.h

+7
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@
2020
#define SECRET_APP_KEY ""
2121
#endif
2222

23+
/* MKR NB 1500 */
24+
#if defined(BOARD_HAS_NB)
25+
#define SECRET_PIN ""
26+
#define SECRET_APN ""
27+
#define SECRET_LOGIN ""
28+
#define SECRET_PASS ""
29+
#endif

examples/ArduinoIoTCloud_Travis_CI/thingProperties.h

+5-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
#if defined(BOARD_HAS_WIFI)
99
#elif defined(BOARD_HAS_GSM)
1010
#elif defined(BOARD_HAS_LORA)
11+
#elif defined(BOARD_HAS_NB)
1112
#else
12-
#error "Arduino IoT Cloud currently only supports MKR1000, MKR WiFi 1010, MKR GSM 1400 and MKR WAN 1300/1310"
13+
#error "Arduino IoT Cloud currently only supports MKR1000, MKR WiFi 1010, MKR NB 1500 and MKR GSM 1400"
1314
#endif
1415

1516
/******************************************************************************
@@ -60,6 +61,8 @@ String str_property_8;
6061
GSMConnectionHandler ArduinoIoTPreferredConnection(SECRET_PIN, SECRET_APN, SECRET_LOGIN, SECRET_PASS);
6162
#elif defined(BOARD_HAS_LORA)
6263
LoRaConnectionHandler ArduinoIoTPreferredConnection(SECRET_APP_EUI, SECRET_APP_KEY, EU868);
64+
#elif defined(BOARD_HAS_NB)
65+
NBConnectionHandler ArduinoIoTPreferredConnection(SECRET_PIN, SECRET_APN, SECRET_LOGIN, SECRET_PASS);
6366
#endif
6467

6568
/******************************************************************************
@@ -74,7 +77,7 @@ void onStringPropertyChange();
7477
/******************************************************************************
7578
FUNCTIONS
7679
******************************************************************************/
77-
#if defined(BOARD_HAS_WIFI) || defined(BOARD_HAS_GSM)
80+
#if defined(BOARD_HAS_WIFI) || defined(BOARD_HAS_GSM) || defined (BOARD_HAS_NB)
7881
void initProperties() {
7982
ArduinoCloud.setThingId(THING_ID);
8083

0 commit comments

Comments
 (0)