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: http://172.168.24.2:8080
    X-M2M-Origin: /mn-cse
    X-M2M-RI: notif-12345
    Content-Type: application/vnd.onem2m-ntfy+xml
        
    <?xml version="1.0" encoding="UTF-8"?>
    <m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
      <nev>
        <rep>
          <cin>
            <con>ON</con>
            <cnf>text/plain:0</cnf>
          </cin>
          <rss>201</rss>
        </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: http://172.168.24.2:8080
    X-M2M-Origin: /mn-cse
    X-M2M-RI: notif-12345
    Content-Type: application/vnd.onem2m-ntfy+json
        
    { "m2m:sgn": {
        "nev": {
          "rep": {
            "cin": {
              "con": "ON",
              "cnf": "text/plain:0"
            },
            "rss": "201"
          }
        },
        "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: http://172.168.24.4:8080
    X-M2M-Origin: /mn-cse
    X-M2M-RI: notif-12346
    Content-Type: application/vnd.onem2m-ntfy+xml
        
    <?xml version="1.0" encoding="UTF-8"?>
    <m2m:sgn xmlns:m2m="http://www.onem2m.org/xml/protocols">
      <nev>
        <rep>
          <cin>
            <con>ON</con>
            <cnf>text/plain:0</cnf>
          </cin>
          <rss>201</rss>
        </rep>
      </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: http://172.168.24.4:8080
    X-M2M-Origin: /mn-cse
    X-M2M-RI: notif-12346
    Content-Type: application/vnd.onem2m-ntfy+json
        
    { "m2m:sgn": {
        "nev": {
          "rep": {
            "cin": {
              "con": "ON",
              "cnf": "text/plain:0"
            },
            "rss": "201"
          }
        },
        "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
[email protected] 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.