Skip to content

Commit

Permalink
[coap] fix the code to ack the confirmable coap response rather than
Browse files Browse the repository at this point in the history
respond with the payload over the dtls session
  • Loading branch information
ZhangLe2016 committed May 13, 2024
1 parent 7b12b9f commit 0acb262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/coap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ void Coap::HandleRequest(const Request &aRequest)
{
LOG_INFO(LOG_REGION_COAP, "server(={}) found cached CoAP response for resource {}", static_cast<void *>(this),
uriPath);
ExitNow(error = Send(*response));
VerifyOrExit(aRequest.IsConfirmable(), error = SendAck(aRequest));
}

resource = mResources.find(uriPath);
Expand Down

0 comments on commit 0acb262

Please sign in to comment.