Skip to content

Commit 63ec3fc

Browse files
committed
chore: align ArduinoIoTCloud-Basic example
1 parent 8b6ff40 commit 63ec3fc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/ArduinoIoTCloud-Basic/thingProperties.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,7 @@ void initProperties() {
3333
#endif
3434
}
3535

36-
#if defined(BOARD_HAS_ETHERNET)
37-
/* DHCP mode */
38-
//EthernetConnectionHandler ArduinoIoTPreferredConnection;
39-
/* Manual mode. It will fallback in DHCP mode if SECRET_OPTIONAL_IP is invalid or equal to "0.0.0.0" */
40-
EthernetConnectionHandler ArduinoIoTPreferredConnection(SECRET_OPTIONAL_IP, SECRET_OPTIONAL_DNS, SECRET_OPTIONAL_GATEWAY, SECRET_OPTIONAL_NETMASK);
41-
#elif defined(BOARD_HAS_WIFI)
36+
#if defined(BOARD_HAS_WIFI)
4237
WiFiConnectionHandler ArduinoIoTPreferredConnection(SECRET_WIFI_SSID, SECRET_WIFI_PASS);
4338
#elif defined(BOARD_HAS_GSM)
4439
GSMConnectionHandler ArduinoIoTPreferredConnection(SECRET_PIN, SECRET_APN, SECRET_LOGIN, SECRET_PASS);
@@ -48,4 +43,9 @@ void initProperties() {
4843
NBConnectionHandler ArduinoIoTPreferredConnection(SECRET_PIN, SECRET_APN, SECRET_LOGIN, SECRET_PASS);
4944
#elif defined(BOARD_HAS_CATM1_NBIOT)
5045
CatM1ConnectionHandler ArduinoIoTPreferredConnection(SECRET_PIN, SECRET_APN, SECRET_LOGIN, SECRET_PASS);
46+
#elif defined(BOARD_HAS_ETHERNET)
47+
/* DHCP mode */
48+
//EthernetConnectionHandler ArduinoIoTPreferredConnection;
49+
/* Manual mode. It will fallback in DHCP mode if SECRET_OPTIONAL_IP is invalid or equal to "0.0.0.0" */
50+
EthernetConnectionHandler ArduinoIoTPreferredConnection(SECRET_OPTIONAL_IP, SECRET_OPTIONAL_DNS, SECRET_OPTIONAL_GATEWAY, SECRET_OPTIONAL_NETMASK);
5151
#endif

0 commit comments

Comments
 (0)