Device

Data of Device

  • Request

Field
Value

Topic

/oneM2M/req/your-access-key/antares-cse/json

Payload

{
      "m2m:rqp": {
        "fr": "your-access-key",
        "to": "/antares-cse/antares-id/nama-aplikasi-anda/nama-device-anda",
        "op": 1,
        "rqi": 123456,
        "pc": {
          "m2m:cin": {
            "cnf": "message",
            "con": "{\"your-first-data\":\"the-integer-value\",\"your-second-data\":\"the-string-data\"}"
          }
        },
        "ty": 4
      }
    }

Retrieve Latest Data

  • Request

Field
Value

Topic

/oneM2M/req/your-access-key/antares-cse/json

Payload

{
      "m2m:rqp": {
        "fr": "your-access-key",
        "to": "/antares-cse/antares-id/nama-aplikasi-anda/nama-device-anda/la",
        "op": 2,
        "rqi": 123456,
        "ty": 4
        }
    }

Delete

  • Request

Field
Value

Topic

/oneM2M/req/your-access-key/antares-cse/json

Payload

{
      "m2m:rqp" : {
        "fr" : "your-access-key",
        "to" : "/antares-cse/antares-id/nama-aplikasi-anda/nama-device-anda",
        "op" : 4,
        "rqi": 123456
      }
    }

Update Device Label

Field
Value

Topic

/oneM2M/req/your-access-key/antares-cse/json

Payload

{
      "m2m:rqp" : {
        "fr" : "your-access-key",
        "to" : "/antares-cse/antares-id/nama-aplikasi-anda/nama-device-anda",
        "op" : 3,
        "rqi": 123456,
        "pc": {
          "m2m:cnt" : {
            "lbl": ["device-label1","device-label2","...etc"]
          }
        },
        "ty": 3
      }
    }

Last updated