8
8
#if defined(BOARD_HAS_WIFI )
9
9
#elif defined(BOARD_HAS_GSM )
10
10
#elif defined(BOARD_HAS_LORA )
11
+ #elif defined(BOARD_HAS_NB )
11
12
#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 "
13
14
#endif
14
15
15
16
/******************************************************************************
@@ -60,6 +61,8 @@ String str_property_8;
60
61
GSMConnectionHandler ArduinoIoTPreferredConnection (SECRET_PIN , SECRET_APN , SECRET_LOGIN , SECRET_PASS );
61
62
#elif defined(BOARD_HAS_LORA )
62
63
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 );
63
66
#endif
64
67
65
68
/******************************************************************************
@@ -74,7 +77,7 @@ void onStringPropertyChange();
74
77
/******************************************************************************
75
78
FUNCTIONS
76
79
******************************************************************************/
77
- #if defined(BOARD_HAS_WIFI ) || defined(BOARD_HAS_GSM )
80
+ #if defined(BOARD_HAS_WIFI ) || defined(BOARD_HAS_GSM ) || defined ( BOARD_HAS_NB )
78
81
void initProperties () {
79
82
ArduinoCloud .setThingId (THING_ID );
80
83
0 commit comments