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 ))
73 #error "Please check Arduino IoT Cloud supported boards list: https://github.com/arduino-libraries/ArduinoIoTCloud/#what"
84#endif
95
@@ -23,7 +19,7 @@ void initProperties() {
2319 ArduinoCloud .setBoardId (BOARD_ID );
2420 ArduinoCloud .setSecretDeviceKey (SECRET_DEVICE_KEY );
2521#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 )
2723 ArduinoCloud .addProperty (switchButton , WRITE , ON_CHANGE , onSwitchButtonChange );
2824 ArduinoCloud .addProperty (location , READ , ON_CHANGE );
2925 ArduinoCloud .addProperty (color , READWRITE , ON_CHANGE , onColorChange );
@@ -42,6 +38,8 @@ void initProperties() {
4238 LoRaConnectionHandler ArduinoIoTPreferredConnection (SECRET_APP_EUI , SECRET_APP_KEY , _lora_band ::EU868 , NULL , _lora_class ::CLASS_A );
4339#elif defined(BOARD_HAS_NB )
4440 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 );
4543#elif defined(BOARD_HAS_ETHERNET )
4644 /* DHCP mode */
4745 //EthernetConnectionHandler ArduinoIoTPreferredConnection;
0 commit comments