Skip to content

Commit

Permalink
adds unicast auto ack
Browse files Browse the repository at this point in the history
  • Loading branch information
traxanos committed Dec 8, 2024
1 parent f606f6d commit 8f35b4c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/knx/tpuart_data_link_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,15 @@ void TpUartDataLinkLayer::requestConfig()
_platform.writeUart(U_CONFIGURE_REQ | U_CONFIGURE_MARKER_REQ);
#endif

// Set Address for AutoACK Unicast
const uint16_t address = _deviceObject.individualAddress();
_platform.writeUart(U_SET_ADDRESS_REQ);
_platform.writeUart((address >> 8) & 0xFF);
_platform.writeUart(address & 0xFF);
#ifdef NCN5120
_platform.writeUart(0xFF); // Dummy Byte needed by NCN only
#endif

// Abweichende Config
if (_repetitions != 0b00110011)
{
Expand Down

0 comments on commit 8f35b4c

Please sign in to comment.