Skip to content

Commit bbc6a22

Browse files
committed
Present node device for gateways as well. See PR arduino#420.
1 parent 154beed commit bbc6a22

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

libraries/MySensors/core/MyTransport.cpp

+8-1
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,14 @@ void transportPresentNode() {
454454
// Open reading pipe for messages directed to this node (set write pipe to same)
455455
transportSetAddress(_nc.nodeId);
456456
// Present node and request config
457-
#ifndef MY_GATEWAY_FEATURE
457+
#ifdef MY_GATEWAY_FEATURE
458+
// Send presentation for this gateway device
459+
#ifdef MY_REPEATER_FEATURE
460+
present(NODE_SENSOR_ID, S_ARDUINO_REPEATER_NODE);
461+
#else
462+
present(NODE_SENSOR_ID, S_ARDUINO_NODE);
463+
#endif
464+
else
458465
if (_nc.nodeId != AUTO) {
459466
// Send signing preferences for this node
460467
signerPresentation(_msg);

0 commit comments

Comments
 (0)