CANDY-LINE / node-red-contrib-lwm2m

Step-by-step tutorial is available at
http://candy-line.tumblr.com/post/166976363228/oma-lwm2m-node-red-node
Apache License 2.0
7 stars 3 forks source link

bootstrap: goes to "registering" state after several hours #13

Closed djDuff closed 5 years ago

djDuff commented 5 years ago

@dbaba san, I encountered one potential bug, I configure device to use bootstrap, client bootstrapping and registration is successful (in it Connected). Then, everything is working for some hours (I don't know for how long exactly), then, client node is going to permanent "registering" status - it doesn't change to Registered image

If I re-deploy, it is working fine in most cases, sometimes it goes to Disconnected immediately: changing Listen port to new one helps, Restarting Node-Red also helps.

Could you please suggest how to troubleshoot the issue?

dbaba commented 5 years ago

@djDuff Thanks for the report! Let me check the issue.

dbaba commented 5 years ago

@djDuff I've released v2.2.0. I ran the client a couple of nights and got no errors. Of course, it didn't fall into "registering" state during the time. However, for the safety, I added the watchdog for the lwm2m client process, which will restart it if the process gets halted.