Skip to content

Commit ce93db7

Browse files
committed
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.
1 parent 5be0e2e commit ce93db7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/MySensors/core/MyGatewayTransportEthernet.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,8 @@ bool gatewayTransportAvailable()
288288
_w5100_spi_en(false);
289289
gatewayTransportSend(buildGw(_msg, I_GATEWAY_READY).set("Gateway startup complete."));
290290
_w5100_spi_en(true);
291+
if (presentation)
292+
presentation();
291293
}
292294
}
293295
bool connected = clients[i].connected();
@@ -318,6 +320,8 @@ bool gatewayTransportAvailable()
318320
debug(PSTR("Eth: connect\n"));
319321
_w5100_spi_en(false);
320322
gatewayTransportSend(buildGw(_msg, I_GATEWAY_READY).set("Gateway startup complete."));
323+
if (presentation)
324+
presentation();
321325
}
322326
}
323327
if (client) {

0 commit comments

Comments
 (0)