net: lwm2m: add missing bootstrap-finish handling
When the bootstrap support was added, it looks like I somehow missed the handling block in the engine. Let's add it now to fix boostrap support. Fixes: https://github.com/zephyrproject-rtos/zephyr/issues/18080 Signed-off-by: Michael Scott <mike@foundries.io>
This commit is contained in:
parent
523123857c
commit
e743d89cdc
|
@ -3312,6 +3312,13 @@ static int handle_request(struct coap_packet *request,
|
|||
}
|
||||
|
||||
well_known = true;
|
||||
#if defined(CONFIG_LWM2M_RD_CLIENT_SUPPORT_BOOTSTRAP)
|
||||
/* check for bootstrap-finish */
|
||||
} else if ((code & COAP_REQUEST_MASK) == COAP_METHOD_POST && r == 1 && \
|
||||
strncmp(options[0].value, "bs", options[0].len) == 0) {
|
||||
engine_bootstrap_finish();
|
||||
return 0;
|
||||
#endif
|
||||
} else {
|
||||
r = coap_options_to_path(options, r, &msg->path);
|
||||
if (r < 0) {
|
||||
|
|
Loading…
Reference in New Issue