net: lwm2m: rd_client_stop behavior #77234
Unanswered
SebastianSchueller
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Since #76470 the RD client will emit a
DISCONNECTessentially every time the client enters theENGINE_DEREGISTEREDstate.One consequence of this changes is that calling
rd_client_stopon the RD client when its already "shut down" (i.e. inENGINE_IDLEstate) will cause the client to emitDISCONNECT.While this wasn't the original intent of the PR, I think this feature is really nice. It makes it really easy and robust for applications to check if the RD client is still doing something by calling
rd_client_stopuntil aDISCONNECTevent is fired.I'd really like to use this as a feature in our application, but I don't want to create a spacebar-heater scenario here :)
Is there any interest in adding this functionality to the documented / tested interface of the RD client?
I'd be happy to create a PR for the tests and documentation for it.
Beta Was this translation helpful? Give feedback.
All reactions