mirror of
https://github.com/espressif/openthread.git
synced 2026-08-13 22:27:47 +00:00
[cli] fix CoAP response code for POST 2.03 -> 2.04 per RFC 7252 (#9971)
This commit is contained in:
@@ -949,7 +949,7 @@ void Coap::HandleRequest(otMessage *aMessage, const otMessageInfo *aMessageInfo)
|
||||
}
|
||||
else
|
||||
{
|
||||
responseCode = OT_COAP_CODE_VALID;
|
||||
responseCode = OT_COAP_CODE_CHANGED;
|
||||
}
|
||||
|
||||
responseMessage = otCoapNewMessage(GetInstancePtr(), nullptr);
|
||||
|
||||
Reference in New Issue
Block a user