File tree 1 file changed +13
-11
lines changed
1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -100,18 +100,20 @@ typedef struct
100
100
bool gatewayTransportInit () {
101
101
_w5100_spi_en (true );
102
102
#if defined(MY_GATEWAY_ESP8266)
103
- (void )WiFi.begin (MY_ESP8266_SSID, MY_ESP8266_PASSWORD);
104
- #ifdef MY_IP_ADDRESS
105
- WiFi.config (_ethernetGatewayIP, gateway, subnet);
103
+ #if defined(MY_ESP8266_SSID)
104
+ (void )WiFi.begin (MY_ESP8266_SSID, MY_ESP8266_PASSWORD);
105
+ #ifdef MY_IP_ADDRESS
106
+ WiFi.config (_ethernetGatewayIP, gateway, subnet);
107
+ #endif
108
+ while (WiFi.status () != WL_CONNECTED)
109
+ {
110
+ delay (500 );
111
+ MY_SERIALDEVICE.print (" ." );
112
+ yield ();
113
+ }
114
+ MY_SERIALDEVICE.print (F (" IP: " ));
115
+ MY_SERIALDEVICE.println (WiFi.localIP ());
106
116
#endif
107
- while (WiFi.status () != WL_CONNECTED)
108
- {
109
- delay (500 );
110
- MY_SERIALDEVICE.print (" ." );
111
- yield ();
112
- }
113
- MY_SERIALDEVICE.print (F (" IP: " ));
114
- MY_SERIALDEVICE.println (WiFi.localIP ());
115
117
116
118
#else
117
119
#ifdef MY_IP_ADDRESS
You can’t perform that action at this time.
0 commit comments