net: lwm2m: fix registration update event in queue mode
When queue mode is enabled, state machine will enter state ENGINE_REGISTRATION_DONE_RX_OFF. This state needs to be taken into account during registration update to send correct event. Signed-off-by: Marin Jurjević <marin.jurjevic@hotmail.com>
This commit is contained in:
parent
21cd3f2d39
commit
2a4e47a912
1 changed files with 2 additions and 1 deletions
|
@ -144,7 +144,8 @@ static void set_sm_state(uint8_t sm_state)
|
|||
} else
|
||||
#endif
|
||||
if (client.engine_state == ENGINE_UPDATE_SENT &&
|
||||
sm_state == ENGINE_REGISTRATION_DONE) {
|
||||
(sm_state == ENGINE_REGISTRATION_DONE ||
|
||||
sm_state == ENGINE_REGISTRATION_DONE_RX_OFF)) {
|
||||
event = LWM2M_RD_CLIENT_EVENT_REG_UPDATE_COMPLETE;
|
||||
} else if (sm_state == ENGINE_REGISTRATION_DONE) {
|
||||
event = LWM2M_RD_CLIENT_EVENT_REGISTRATION_COMPLETE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue