Fix mqtt client when using dhcp #355
This commit is contained in:
@@ -32,8 +32,10 @@ IPAddress _brokerIp(MY_CONTROLLER_IP_ADDRESS);
|
|||||||
|
|
||||||
#if defined(MY_GATEWAY_ESP8266)
|
#if defined(MY_GATEWAY_ESP8266)
|
||||||
#define EthernetClient WiFiClient
|
#define EthernetClient WiFiClient
|
||||||
IPAddress _gatewayIp(MY_IP_GATEWAY_ADDRESS);
|
#if defined(MY_IP_ADDRESS)
|
||||||
IPAddress _subnetIp(MY_IP_SUBNET_ADDRESS);
|
IPAddress _gatewayIp(MY_IP_GATEWAY_ADDRESS);
|
||||||
|
IPAddress _subnetIp(MY_IP_SUBNET_ADDRESS);
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
byte _clientMAC[] = { MY_MAC_ADDRESS };
|
byte _clientMAC[] = { MY_MAC_ADDRESS };
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user