{"action":"created","issue":{"url":"https://api.github.com/repos/OpenMobileAlliance/OMA_LwM2M_for_Developers/issues/300","repository_url":"https://api.github.com/repos/OpenMobileAlliance/OMA_LwM2M_for_Developers","labels_url":"https://api.github.com/repos/OpenMobileAlliance/OMA_LwM2M_for_Developers/issues/300/labels{/name}","comments_url":"https://api.github.com/repos/OpenMobileAlliance/OMA_LwM2M_for_Developers/issues/300/comments","events_url":"https://api.github.com/repos/OpenMobileAlliance/OMA_LwM2M_for_Developers/issues/300/events","html_url":"https://github.com/OpenMobileAlliance/OMA_LwM2M_for_Developers/issues/300","id":305272315,"number":300,"title":"Is it OK for a client to De-Register during Firmware Update?","user":{"login":"kFYatek","id":4499762,"avatar_url":"https://avatars0.githubusercontent.com/u/4499762?v=4","gravatar_id":"","url":"https://api.github.com/users/kFYatek","html_url":"https://github.com/kFYatek","followers_url":"https://api.github.com/users/kFYatek/followers","following_url":"https://api.github.com/users/kFYatek/following{/other_user}","gists_url":"https://api.github.com/users/kFYatek/gists{/gist_id}","starred_url":"https://api.github.com/users/kFYatek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kFYatek/subscriptions","organizations_url":"https://api.github.com/users/kFYatek/orgs","repos_url":"https://api.github.com/users/kFYatek/repos","events_url":"https://api.github.com/users/kFYatek/events{/privacy}","received_events_url":"https://api.github.com/users/kFYatek/received_events","type":"User","site_admin":false},"labels":[{"id":171567890,"url":"https://api.github.com/repos/OpenMobileAlliance/OMA_LwM2M_for_Developers/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-14T18:11:33Z","updated_at":"2018-04-24T06:06:56Z","closed_at":null,"author_association":"NONE","body":"I'm basing this question on the TS 1.0.2.\r\n\r\nWhen an LwM2M server executes the /5/0/2 Resource (Firmware Update / Update), the client is supposed to apply a downloaded firmware image, which is most likely followed by a reboot with a new version - which in most implementations involves sending Register message to the LwM2M Server(s).\r\n\r\nThe question is - is it permitted to first De-Register before applying the firmware and rebooting? And if the client does so, how should the Server interpret such act?\r\n\r\nSection 5.3.3 \"De-register\" states that:\r\n> Upon receiving this message, the LwM2M Server removes the registration information from the LwM2M Server.\r\n\r\nThis might be interpreted as implying that the Server shall forget information about the client's state, including the expectations about the Firmware Update state. On the other hand, sending De-Register is common thing to do for Client implementations during a \"graceful shutdown\" procedure, and it seems to make sense to do a graceful shutdown before flashing firmware image.\r\n\r\nSimilar question may be asked about the Reboot operation (/3/0/4)."},"comment":{"url":"https://api.github.com/repos/OpenMobileAlliance/OMA_LwM2M_for_Developers/issues/comments/383814282","html_url":"https://github.com/OpenMobileAlliance/OMA_LwM2M_for_Developers/issues/300#issuecomment-383814282","issue_url":"https://api.github.com/repos/OpenMobileAlliance/OMA_LwM2M_for_Developers/issues/300","id":383814282,"user":{"login":"kFYatek","id":4499762,"avatar_url":"https://avatars0.githubusercontent.com/u/4499762?v=4","gravatar_id":"","url":"https://api.github.com/users/kFYatek","html_url":"https://github.com/kFYatek","followers_url":"https://api.github.com/users/kFYatek/followers","following_url":"https://api.github.com/users/kFYatek/following{/other_user}","gists_url":"https://api.github.com/users/kFYatek/gists{/gist_id}","starred_url":"https://api.github.com/users/kFYatek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kFYatek/subscriptions","organizations_url":"https://api.github.com/users/kFYatek/orgs","repos_url":"https://api.github.com/users/kFYatek/repos","events_url":"https://api.github.com/users/kFYatek/events{/privacy}","received_events_url":"https://api.github.com/users/kFYatek/received_events","type":"User","site_admin":false},"created_at":"2018-04-24T06:06:56Z","updated_at":"2018-04-24T06:06:56Z","author_association":"NONE","body":"> If the firmware image is obtained from a LwM2M server then de-registering from it right before or during the firmware update download is not a good idea.\r\nWhat about after the download, but before actually applying (flashing) it? What do you think about that case?"}}
{"actor":{"display_login":"kFYatek"}}