Skip to content

Commit

Permalink
fix: send correct respons if no tunnel found
Browse files Browse the repository at this point in the history
  • Loading branch information
thewhobox committed Feb 12, 2024
1 parent a2df638 commit 6e61636
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/knx/ip_data_link_layer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -634,8 +634,7 @@ void IpDataLinkLayer::loopHandleDeviceConfigurationRequest(uint8_t* buffer, uint
print("Channel ID nicht gefunden: ");
println(confReq.connectionHeader().channelId());
KnxIpStateResponse stateRes(0x00, E_CONNECTION_ID);
//TODO where to send?
//_platform.sendBytesUniCast(tun->IpAddress, tun->PortCtrl, stateRes.data(), stateRes.totalLength());
_platform.sendBytesUniCast(0, 0, stateRes.data(), stateRes.totalLength());
return;
}

Expand Down Expand Up @@ -672,8 +671,7 @@ void IpDataLinkLayer::loopHandleTunnelingRequest(uint8_t* buffer, uint16_t lengt
println(tunnReq.connectionHeader().channelId());
#endif
KnxIpStateResponse stateRes(0x00, E_CONNECTION_ID);
//TODO where to send?
//_platform.sendBytesUniCast(stateRequest.hpaiCtrl().ipAddress(), stateRequest.hpaiCtrl().ipPortNumber(), stateRes.data(), stateRes.totalLength());
_platform.sendBytesUniCast(0, 0, stateRes.data(), stateRes.totalLength());
return;
}

Expand Down

0 comments on commit 6e61636

Please sign in to comment.