oneM2M Logo transparent 196x130

Standards for M2M and the Internet of Things

Notifications

Each time a content instance is created under a container of an ADN-AE, then a notification containing the whole created content instance is posted to the targeted subscriber i.e. ADN-AE1 or ADN-AE2, that can actuate the light with the new state received in the notification.

Post a notification to ADN-AE1

HTTP Request with XML payload
    POST / HTTP/1.1
    Host: 192.168.0.10:9090
    X-M2M-Origin: /mn-cse
    X-M2M-RI: notif-12345
    Content-Type: application/xml

<?xml version="1.0" encoding="UTF-8"?> <m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols" rn="cin-394798749"> <nev> <rep> <m2m:cin> <ty>4</ty>
<ri>cin-394798749</ri>
<pi>cnt-790965889</pi>
<ct>20150925T050534</ct>
<lt>20150925T050534</lt>
  <et>20151107T154802</et>
<st>0</st>
<cnf>text/plain:0</cnf>
<cs>3</cs>
<con>ON</con>
</m2m:cin> </rep> </nev> <sur>/mn-cse/sub-856593979</sur> </m2m:sgn>
HTTP Response
    HTTP/1.1 200 OK
    X-M2M-RSC: 2000
    X-M2M-RI: notif-12345
HTTP Request with JSON payload
    POST / HTTP/1.1
    Host: 192.168.0.10:9090
    X-M2M-Origin: /mn-cse
    X-M2M-RI: notif-12345
    Content-Type: application/json
        
    { "m2m:sgn": {
        "nev": {
          "rep": {
            "m2m:cin": 
{ "ty": 4,
"ri": "cin-394798749",
"pi": "cnt-790965889",
"rn": "cin-394798749",
"ct": "20150925T050534",
"lt": "20150925T050534",
"et": "20151107T154802",
"st": 0,
"cnf": "text/plain:0",
"cs": 3,
"con": "ON"
} } }, "sur": "/mn-cse/sub-856593979" } }
HTTP Response
    HTTP/1.1 200 OK
    X-M2M-RSC: 2000
    X-M2M-RI: notif-12345

 

Post a notification to ADN-AE2

HTTP Request with XML payload
    POST / HTTP/1.1
    Host: 192.168.0.20:9090
    X-M2M-Origin: /mn-cse
    X-M2M-RI: notif-12346
    Content-Type: application/xml

<?xml version="1.0" encoding="UTF-8"?>
<m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols" rn="cin-256599578">
 <nev>
    <rep>
    <m2m:cin>
      <ty>4</ty>
      <ri>cin-256599578</ri>
      <pi>cnt-790965889</pi>
      <ct>20150925T050623</ct>
      <lt>20150925T050623</lt>
      <et>20151107T154802</et>
      <st>0</st>
      <cnf>text/plain:0</cnf>
      <cs>3</cs>
      <con>ON</con>
    </cin>
  </rep>
   <net>3</net>  </nev>
 <sur>
 /mn-cse/sub-856463728
 </sur>
</m2m:sgn>
 
HTTP Response
    HTTP/1.1 200 OK
    X-M2M-RSC: 2000
    X-M2M-RI: notif-12346
HTTP Request with JSON payload
    POST / HTTP/1.1
    Host: 192.168.0.20:9090
    X-M2M-Origin: /mn-cse
    X-M2M-RI: notif-12346
    Content-Type: application/json
        
    {
 "m2m:sgn":
  {
   "nev":{
    "rep":
   {
    "m2m:cin":
    {
     "ty": 4,
     "ri": "cin-256599578",
     "pi": "cnt-790965889",
     "rn": "cin-256599578",
     "ct": "20150925T050623",
     "lt": "20150925T050623",
     "et": "20151107T154802",
     "st": 0,
     "cnf": "text/plain:0",
     "cs": 3,
     "con": "ON"
    }
   }
   "net":[3] 
   }
  "sur":"/mn-cse/sub-856463728" 
  }
}
HTTP Response
    HTTP/1.1 200 OK
    X-M2M-RSC: 2000
    X-M2M-RI: notif-12346

 

Subscribe to oneM2M News Please enter your name and email address, then click on submit.
Alternatively, you can send an email from your preferred email application with a blank subject to
Listserv@list.etsi.org with subscribe oneM2M_News in the message body.

Subscribe to oneM2M News

Your Name(*)
Please let us know your name.

Your Email(*)
Please let us know your email address.