@@ -33,12 +33,7 @@ void initProperties() {
33
33
#endif
34
34
}
35
35
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 )
42
37
WiFiConnectionHandler ArduinoIoTPreferredConnection (SECRET_WIFI_SSID , SECRET_WIFI_PASS );
43
38
#elif defined(BOARD_HAS_GSM )
44
39
GSMConnectionHandler ArduinoIoTPreferredConnection (SECRET_PIN , SECRET_APN , SECRET_LOGIN , SECRET_PASS );
@@ -48,4 +43,9 @@ void initProperties() {
48
43
NBConnectionHandler ArduinoIoTPreferredConnection (SECRET_PIN , SECRET_APN , SECRET_LOGIN , SECRET_PASS );
49
44
#elif defined(BOARD_HAS_CATM1_NBIOT )
50
45
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 );
51
51
#endif
0 commit comments