1
- #if defined(BOARD_HAS_WIFI )
2
- #elif defined(BOARD_HAS_GSM )
3
- #elif defined(BOARD_HAS_LORA )
4
- #elif defined(BOARD_HAS_NB )
5
- #elif defined(BOARD_HAS_ETHERNET )
6
- #else
1
+ #if !(defined(BOARD_HAS_WIFI ) || defined(BOARD_HAS_GSM ) || defined(BOARD_HAS_LORA ) || \
2
+ defined(BOARD_HAS_NB ) || defined(BOARD_HAS_ETHERNET ) || defined(BOARD_HAS_CATM1_NBIOT ))
7
3
#error "Please check Arduino IoT Cloud supported boards list: https://github.com/arduino-libraries/ArduinoIoTCloud/#what"
8
4
#endif
9
5
@@ -23,7 +19,7 @@ void initProperties() {
23
19
ArduinoCloud .setBoardId (BOARD_ID );
24
20
ArduinoCloud .setSecretDeviceKey (SECRET_DEVICE_KEY );
25
21
#endif
26
- #if defined(BOARD_HAS_WIFI ) || defined(BOARD_HAS_GSM ) || defined(BOARD_HAS_NB )
22
+ #if defined(BOARD_HAS_WIFI ) || defined(BOARD_HAS_GSM ) || defined(BOARD_HAS_NB ) || defined( BOARD_HAS_ETHERNET ) || defined( BOARD_HAS_CATM1_NBIOT )
27
23
ArduinoCloud .addProperty (switchButton , WRITE , ON_CHANGE , onSwitchButtonChange );
28
24
ArduinoCloud .addProperty (location , READ , ON_CHANGE );
29
25
ArduinoCloud .addProperty (color , READWRITE , ON_CHANGE , onColorChange );
@@ -42,6 +38,8 @@ void initProperties() {
42
38
LoRaConnectionHandler ArduinoIoTPreferredConnection (SECRET_APP_EUI , SECRET_APP_KEY , _lora_band ::EU868 , NULL , _lora_class ::CLASS_A );
43
39
#elif defined(BOARD_HAS_NB )
44
40
NBConnectionHandler ArduinoIoTPreferredConnection (SECRET_PIN , SECRET_APN , SECRET_LOGIN , SECRET_PASS );
41
+ #elif defined(BOARD_HAS_CATM1_NBIOT )
42
+ CatM1ConnectionHandler ArduinoIoTPreferredConnection (SECRET_PIN , SECRET_APN , SECRET_LOGIN , SECRET_PASS );
45
43
#elif defined(BOARD_HAS_ETHERNET )
46
44
/* DHCP mode */
47
45
//EthernetConnectionHandler ArduinoIoTPreferredConnection;
0 commit comments