"Accept" field for subscriptions [message #1715540] |
Tue, 24 November 2015 05:21  |
Eclipse User |
|
|
|
Hello,
I am getting confused in some concepts of m2m. I hope someone can clear this.
In "HTTP protocol binding" part of specification it clearly states that the mapping between originator and the http should exist. Specifically, headers Content-Type and Accept.
Accept says that you can specify what formatting of the data you can accept ( process), while Content-Type says of which type is the content in the request.
But the things that confuses me is the following:
How can one specify in Subscription resource, what type should the subscriber receive?
Something like the following:
Subscriber ------------------------------- > some-SCL
sends Subscribe
(Mandatory stuff like
contact...
Also! I want to receive data
formatted in JSON)
Where can SCL save the info about the format in which subscriber wishes to receive the content, or better said where in Subscription resource?
[Updated on: Tue, 24 November 2015 05:22] by Moderator
|
|
|
Re: "Accept" field for subscriptions [message #1717811 is a reply to message #1715540] |
Wed, 16 December 2015 18:03  |
Eclipse User |
|
|
|
Hello Sanjin,
You are highlighting an important issue in the SmartM2M standard.
Unfortunately, this issue is solved only in the oneM2M standard V1.5. The solution consists of adding an accept media-types attribute in the application resource where the subscriber can inform about the supported media-types. Such mechanism is efficient and can work even in a distributed environment using nodes multi-hops. This event can be retargetted using any media-type through several nodes. At the end the event is converted with the right media-type by the final CSE and sent to the subscriber.
Currently, we submitted OM2M v1, which is oneM2M compliant, to Eclipse for validation.
Let's keep in touch If you are interested in oneM2M.
Hope this can help,
Mahdi
|
|
|
Powered by
FUDForum. Page generated in 0.07353 seconds