Linux: Binds to MY_IP_ADDRESS in client mode (#849)

This commit is contained in:
Marcelo Aquino
2017-05-21 14:27:22 +02:00
committed by Olivier
parent abba1ec377
commit fb3d936d4c
5 changed files with 45 additions and 10 deletions
+3
View File
@@ -138,6 +138,9 @@ bool gatewayTransportInit(void)
#endif /* MY_GATEWAY_ESP8266 */
#if defined(MY_GATEWAY_CLIENT_MODE)
#if defined(MY_GATEWAY_LINUX) && defined(MY_IP_ADDRESS)
client.bind(_ethernetGatewayIP);
#endif
#if defined(MY_CONTROLLER_URL_ADDRESS)
if (client.connect(MY_CONTROLLER_URL_ADDRESS, MY_PORT)) {
#else