-
Notifications
You must be signed in to change notification settings - Fork 52
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
Using timestamped value in Send Operation. #538
Comments
Timestamped data can be used with SenML. Since SenML encoded data can be sent in the Send operation, it is possible to send timestamped data via the Send operation. |
Thx for the quick answer. 🙏 I guess we need to change the Leshan API to allow this. I'm not sure maybe I'm the only one, but as I said reading the spec I understood that was not allowed. Maybe some clarification should be added about that in the specification ? |
@hannestschofenig, I think a bit more about it. You say :
SenML allows to send same resource with different timestamp in the same payload. But does that mean that I can used timestamped value with SenML using a classic request like Read Or Write request too ? I guess sometime LWM2M bring some restriction to the used encoding format.
Until now, I was thinking that timestamp was used ONLY for |
Another Leshan user ask for clarification about using timestamp on Read request : eclipse-leshan/leshan#1479. It would help a lot to have clarification from OMA to be able to do right implementation choice 🙏 |
Another Leshan user ask for clarification about using timestamp on Read request : eclipse-leshan/leshan#1553. Please could you clarify this 🙏 |
Every time the specification talks about SenML timestamp this is to refer to Historical representations. ( So I think this is strong hint to not used timestamp in other case OR at least authors doesn't really think about that use cases ? All point that I found in the specification : At LWM2M-v1.2.1@core§7.5.6. SenML JSON :
And
(we same kind of sentence for old json format : ( The only example is also about Historical representation (LWM2M-v1.2.1@core§Table: 7.5.6.-3 SenML JSON payload from example notification about a Resource containing multiple historical representations of a Temperature Resource:
Another hint, lot of LWM2M object has a
We could imagine if this was added this is to have measurement time in other case than historical representations. |
Some clarification about what I think of timestamp usage in LWM2M : eclipse-leshan/leshan#1623 |
OMA agrees that timestamp should be allowed for READ and SEND opererations and will be addressed in v1.3 |
If OMA allow decide to make it usable for READ and OBSERVE, I hope OMA will clearly define how it should be used. (especially how it works with notification history) If you want feedback from me to not hesitate to share your thought about that before the official release. |
Leshan contributor would like to know if it's possible to use timestamped Value in Send Operation with SenML format.
(see eclipse-leshan/leshan#1192)
I see nothing if the specification which talked about this. So my first guess was this is not allowed.
This little hint 👇 could confirm this idea (but it could be just a restriction of this new format):
In LWM2M v1.2 a new format was added LWM2M CBOR which can be used with Send Operation and I understand there is no way to add timestamped value. See http://www.openmobilealliance.org/release/LightweightM2M/V1_2-20201110-A/HTML-Version/OMA-TS-LightweightM2M_Core-V1_2-20201110-A.html#7-4-4-0-744-LwM2M-CBOR
Currently Leshan API does not allow this.
Could you clarify this, please 🙏
The text was updated successfully, but these errors were encountered: