Skip to content

Commit 8f35b4c

Browse files
committed
adds unicast auto ack
1 parent f606f6d commit 8f35b4c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/knx/tpuart_data_link_layer.cpp

+9
Original file line numberDiff line numberDiff line change
@@ -649,6 +649,15 @@ void TpUartDataLinkLayer::requestConfig()
649649
_platform.writeUart(U_CONFIGURE_REQ | U_CONFIGURE_MARKER_REQ);
650650
#endif
651651

652+
// Set Address for AutoACK Unicast
653+
const uint16_t address = _deviceObject.individualAddress();
654+
_platform.writeUart(U_SET_ADDRESS_REQ);
655+
_platform.writeUart((address >> 8) & 0xFF);
656+
_platform.writeUart(address & 0xFF);
657+
#ifdef NCN5120
658+
_platform.writeUart(0xFF); // Dummy Byte needed by NCN only
659+
#endif
660+
652661
// Abweichende Config
653662
if (_repetitions != 0b00110011)
654663
{

0 commit comments

Comments
 (0)