Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lwm2m: add api to inspect observation state of resource/object #38534

Closed
huelsenfruchtzwerg opened this issue Sep 14, 2021 · 4 comments
Closed
Labels
Enhancement Changes/Updates/Additions to existing features

Comments

@huelsenfruchtzwerg
Copy link
Contributor

huelsenfruchtzwerg commented Sep 14, 2021

RIght know there's no (*) way for the application to know whether a resource/object is observed from the lwm2m server. From an high/abstract level this is not an issue, the app should not need to care about what the server is or is not interested in. However there are a number of use cases where this knowledge would be very useful:

  1. some indicator on the device to signal "readiness" when expected functionality depends on some observations to be established
  2. (in the absence of the "Notification storing when offline" feature) to buffer some data locally to transmit it when the observation has been established

(*): There actually is one very hacky way: lwm2m_notify_* returns the number of existing observation instances, but not without creating a most likely superfluous notification.

@huelsenfruchtzwerg huelsenfruchtzwerg added the Enhancement Changes/Updates/Additions to existing features label Sep 14, 2021
@rlubos
Copy link
Contributor

rlubos commented Sep 15, 2021

Would a generic observe callback proposed in #38531 do the job? Perhaps we could cover the enhancements under a single umbrella issue, instead of 3 separate ones, since they're all related?

@huelsenfruchtzwerg
Copy link
Contributor Author

Yes, I agree, a generic solution seems like the most desireable outcome.

@MaikVermeulen
Copy link
Contributor

For everyone interested:

Currently on Github I see that there are 3 or so issues all related to buffering/handling intermittent connectivity.

For focussed discussion, I think it would be nicer to have a central thread on it.
I’ve made a thread ‘Client offline mode, data buffering, etc.’ in the LwM2M channel on the Discord.

@huelsenfruchtzwerg
Copy link
Contributor Author

huelsenfruchtzwerg commented Sep 29, 2021

closing in favor of the more generic (approach in) #38531

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

No branches or pull requests

3 participants