Skip to content

Commit f159200

Browse files
committed
Extend #ifdef clause by defined(BOARD_HAS_NB) so that the properties are also instantiated for MKR NB 1500
1 parent b7a0d87 commit f159200

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ArduinoIoTCloud_LED_switch/thingProperties.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void initProperties() {
2323
ArduinoCloud.setSecretDeviceKey(SECRET_DEVICE_KEY);
2424
#endif
2525
ArduinoCloud.setThingId(THING_ID);
26-
#if defined(BOARD_HAS_WIFI) || defined(BOARD_HAS_GSM)
26+
#if defined(BOARD_HAS_WIFI) || defined(BOARD_HAS_GSM) || defined(BOARD_HAS_NB)
2727
ArduinoCloud.addProperty(led, READWRITE, ON_CHANGE, onLedChange);
2828
ArduinoCloud.addProperty(potentiometer, READ, ON_CHANGE);
2929
#elif defined(BOARD_HAS_LORA)

0 commit comments

Comments
 (0)