Skip to content

Commit

Permalink
net: lwm2m: Handle CONTINUE in registration message
Browse files Browse the repository at this point in the history
The continue code is not considered an error in case of
block-wise transfer.

Signed-off-by: Lukas Woodtli <[email protected]>
  • Loading branch information
LukasWoodtli authored and carlescufi committed May 15, 2023
1 parent 73fb4e7 commit fb924e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions subsys/net/lib/lwm2m/lwm2m_rd_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,12 @@ static int do_registration_reply_cb(const struct coap_packet *response,
client.server_ep);

return 0;
} else if (code == COAP_RESPONSE_CODE_CONTINUE) {
#if defined(CONFIG_LWM2M_COAP_BLOCK_TRANSFER)
return 0;
#else
LOG_ERR("Response code CONTINUE not supported");
#endif
}

LOG_ERR("Failed with code %u.%u (%s). Not Retrying.",
Expand Down

0 comments on commit fb924e2

Please sign in to comment.