lwm2m_rd_client_start()
lwm2m_rd_client_start()
IDLE
IDLE
INIT
INIT
LwM2M engine state machine
LwM2M engine state machine
DO
REGISTRATION
DO...
if bootstrap needed
if bootstrap needed
Send bootstrap registration message
Send bootstrap registration message
DO
BOOTSTRAP REG
DO...
Send registration message
Send registration message
REGISTRATION
SENT
REGISTRATION...
Successful registration response
Emit event 5
Successful registration response...
REGISTRATION
DONE
REGISTRATION...
Only in queue mode
afterĀ idle period.
Emit event 10
Only in queue mode...
RX OFF
IDLE
RX OFF...
UPDATE SENT
UPDATE SENT
Update
Update
Update
Update
Successful update
Emit event 7
Successful update...
Send deregistration message
Send deregistration message
DEREGISTER
DEREGISTER
acknowledged
acknowledged
DEREGISTRATION
SENT
DEREGISTRATION...
stop requested
Emit event 9
stop requested...
Server
is disabled
Server...
DEREGISTERED
DEREGISTERED
lwm2m_rd_client_stop()
lwm2m_rd_...
NETWORK
ERROR
NETWORK...
Successful bootstrap registration response
Emit event 2
Successful bootstrap registration response...
BOOTSTRAP REQ SENT
BOOTSTRAP REQ SENT
Bootstrap finish from server
Bootstrap finish from server
BOOTSTRAP REQ DONE
BOOTSTRAP REQ DONE
BOOTSTRAP TRANS DONE
BOOTSTRAP TRANS DONE
Emit event 3
Emit event 3
Emit event 11
Emit event 11
Message transmission failed
If not bootstrap, emit event 6
Message transmission failed...
Failure code in response
or timeout
Emit event 6
Failure code in response...
Registration failed,
emit event 4
Registration failed,...
Failure
Event 8
Failure...
UPDATE REGISTRATION
UPDATE REGISTRATION
Send update registration
messageĀ 
Send update registration...
Registration lifetime
is not yet expired
Registration lifetime...
fallback
fallback
Suspending
Suspending
lwm2m_engine_pause()
lwm2m_engine_pause()
lwm2m_engine_resume()
lwm2m_engine_resume()
ANY
STATE
ANY...
SUSPENDED
SUSPENDED
DO
REGISTRATION
DO...

state was
UPDATE_SENT?

state was...

Y

Y

N

N
REGISTRATION
DONE
REGISTRATION...

N

N

Y

Y

time for
update?

time for...
Bootstrap failed,
emit event 1
Bootstrap...

SERVER
DISABLED
SERVER...
Server disabled,
emit event 12
Server disabled,...
Cannot recover,
emit event 13
Cannot recover,...
Disable timer
expired
Disable timer...
connecting
connecting
connected
connected
stopped
stopped
Disconnected
for a perdiod
Disconnected...
Disconnecting
or stopping
Disconnecting...
Color coding
Color coding
recovering
recovering
Text is not SVG - cannot display