From 2233ae150e78ed62c467fb494ac584d5ce50595b Mon Sep 17 00:00:00 2001 From: Kamil Sroka Date: Mon, 2 Dec 2019 17:58:18 +0100 Subject: [PATCH] [coap] fix response timeout for NON messages (#4372) --- src/core/coap/coap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/coap/coap.cpp b/src/core/coap/coap.cpp index 1fc35f609..3e5a9b29e 100644 --- a/src/core/coap/coap.cpp +++ b/src/core/coap/coap.cpp @@ -669,7 +669,7 @@ CoapMetadata::CoapMetadata(bool aConfirmable, else { // Set overall response timeout. - mNextTimerShot = TimerMilli::GetNow() + kMaxTransmitWait; + mNextTimerShot = TimerMilli::GetNow() + Time::SecToMsec(kMaxTransmitWait); } mAcknowledged = false;