Resend presentation if client connected

This change solve the problem described  here:
http://forum.mysensors.org/topic/2112/n00b-ethernet-gw-without-nf24

The presentation must be resent when the client connects. Without this Domoticz catches only sensor data, and doesn't know about connected actuators.
This commit is contained in:
zaphodus
2016-02-03 18:09:44 +01:00
parent 5be0e2e3b5
commit ce93db7351
@@ -288,6 +288,8 @@ bool gatewayTransportAvailable()
_w5100_spi_en(false);
gatewayTransportSend(buildGw(_msg, I_GATEWAY_READY).set("Gateway startup complete."));
_w5100_spi_en(true);
if (presentation)
presentation();
}
}
bool connected = clients[i].connected();
@@ -318,6 +320,8 @@ bool gatewayTransportAvailable()
debug(PSTR("Eth: connect\n"));
_w5100_spi_en(false);
gatewayTransportSend(buildGw(_msg, I_GATEWAY_READY).set("Gateway startup complete."));
if (presentation)
presentation();
}
}
if (client) {