Data of Device

Store Data of a Particular Device

  • Request

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name or https://platform.antares.id:8443/~/antares-cse/your-device-ID/ Note: ID-device-anda must be starting with CNT. e.g. CNT-842419289

Method

POST

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/json;ty=4

Accept

application/json

Body

{
  "m2m:cin": {
    "con": "{\"key1\":\"integer-value\", \"key2\":\"string-value\", \"keyN\":\"valueN\"}"
  }
}

Note!! Key adalah nama variable sedangkan value adalah nilai dari variable tersebut.

  • Response

{
    "m2m:cin": {
        "rn": "cin_893238184",
        "ty": 4,
        "ri": "/antares-cse/cin-893238184",
        "pi": "/antares-cse/cnt-995741382",
        "ct": "20191119T180722",
        "lt": "20191119T180722",
        "st": 0,
        "cnf": "text/plain:0",
        "cs": 62,
        "con": "{\"key1\":integer-value, \"key2\":\"string-value\", \"keyN\":\"valueN\"}"
    }
}

Retrieve all Data Content of Device

  • Request

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name?fu=1&drt=2&ty=4 or https://platform.antares.id:8443/~/antares-cse/your-device-ID?fu=1&drt=2&ty=4 Note: ID-device-anda must be starting with CNT. e.g. CNT-842419289

Method

GET

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/json

Accept

application/json

  • Response

{
    "m2m:list": [
        {
            "m2m:cin": {
                "rn": "cin_zTLhcucd8f4OHqwBnKTH7OctolTORJKu",
                "ty": 4,
                "ri": "/antares-cse/cin-zTLhcucd8f4OHqwBnKTH7OctolTORJKu",
                "pi": "/antares-cse/cnt-eSGc7dlEqLPzfee3",
                "ct": "20230320T075808",
                "lt": "20230320T075808",
                "st": 0,
                "cnf": "text/plain:0",
                "cs": 14,
                "con": "{"status":"0"}"
            }
        }
    ]
}

Retrieve All Data ID of Device

  • Request

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name?fu=1&ty=4&drt=1 or https://platform.antares.id:8443/~/antares-cse/your-device-ID?fu=1&ty=4&drt=1 Note: ID-device-anda must be starting with CNT. e.g. CNT-842419289

Method

GET

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/json

Accept

application/json

  • Response

{
    "m2m:uril": [
        "/antares-cse/antares-id/nama-aplikasi-anda/nama-device-anda/cin_893238184",
        "/antares-cse/antares-id/your-aplikasi-anda/nama-device-anda/cin_178578843"
    ]
}

Retrieve Particular Data of Device

  • Request

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/data-from-device-ID or

Method

GET

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/json

Accept

application/json

  • Response

Result

{
    "m2m:cin": {
        "rn": "cin_893238184",
        "ty": 4,
        "ri": "/antares-cse/cin-893238184",
        "pi": "/antares-cse/cnt-995741382",
        "ct": "20191119T180722",
        "lt": "20191119T180722",
        "st": 0,
        "cnf": "text/plain:0",
        "cs": 62,
        "con": "{\"key1\":integer-value, \"key2\":\"string-value\", \"keyN\":\"valueN\"}"
    }
}

Retrieve Latest Data

  • Request

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/la

Method

GET

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/json;ty=4

Accept

application/json

  • Response

Result

{
    "m2m:cin": {
        "rn": "cin_893238184",
        "ty": 4,
        "ri": "/antares-cse/cin-893238184",
        "pi": "/antares-cse/cnt-995741382",
        "ct": "20191119T180722",
        "lt": "20191119T180722",
        "st": 0,
        "cnf": "text/plain:0",
        "cs": 62,
        "con": "{\"key1\":integer-value, \"key2\":\"string-value\", \"keyN\":\"valueN\"}"
    }
}

Retrieve Oldest Data

  • Request

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/ol

Method

GET

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/json;ty=4

Accept

application/json

  • Response

Result

{
    "m2m:cin": {
        "rn": "cin_178578843",
        "ty": 4,
        "ri": "/antares-cse/cin-178578843",
        "pi": "/antares-cse/cnt-995741382",
        "ct": "20191119T171604",
        "lt": "20191119T171604",
        "st": 0,
        "cnf": "text/plain:0",
        "cs": 100,
        "con": "<obj>\n
                    <num key1=\"value1\"/>\n
                    <str key2=\"value2\"/>\n        
                    <bool keyN=\"valueN\"/>\n
                </obj>"
    }
}