Device

Create

  • Request

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name or https://platform.antares.id:8443/~/antares-cse/your-application-ID Note: your-application-ID must be starting with CAE. e.g. CAE760571675

Method

POST

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/json;ty=3

Accept

application/json

X-ANTARES-Package

your-package-ID

Body

{
    "m2m:cnt": {
    "rn": "your-device-name"
    }
}

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

  • Response

{
    "m2m:cnt": {
        "rn": "learnLora",
        "ty": 3,
        "ri": "/antares-cse/cnt-456680027",
        "pi": "/antares-cse/CAE492050112",
        "ct": "20191119T162939",
        "lt": "20191119T162939",
        "acpi": [
            "/antares-cse/acp-35730207",
            "/antares-cse/acp-891035820"
        ],
        "et": "20201119T162939",
        "st": 0,
        "mni": 30000000,
        "mbs": 10000,
        "mia": 0,
        "cni": 0,
        "cbs": 0,
        "ol": "/antares-cse/antares-id/your-application-name/you-device-name/ol",
        "la": "/antares-cse/antares-id/your-application-name/you-device-name/la"
    }
}

Retrieve All Devices ID of a Particular Application

  • Request

Field

Value

URL

https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name?fu=1&ty=3 or https://platform.antares.id:8443/~/antares-cse/your-application-ID?fu=1&ty=3 Note: your-application-ID must be starting CAE. e.g. CAE760571675

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/your-application-name/you-device-name",
        "/antares-cse/antares-id/your-application-name/you-device-name2",
    ]
}

Retrieve 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: your-device-id must be starting with CNT-842419289

Method

GET

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/json

Accept

application/json

  • Response

{
    "m2m:cnt": {
        "rn": "your-device-name",
        "ty": 3,
        "ri": "/antares-cse/cnt-456680027",
        "pi": "/antares-cse/CAE492050112",
        "ct": "20191119T162939",
        "lt": "20191119T162939",
        "acpi": [
            "/antares-cse/acp-35730207",
            "/antares-cse/acp-891035820"
        ],
        "et": "20201119T162939",
        "st": 0,
        "mni": 30000000,
        "mbs": 10000,
        "mia": 0,
        "cni": 0,
        "cbs": 0,
        "ol": "/antares-cse/antares-id/your-application-name/your-device-name/ol",
        "la": "/antares-cse/antares-id/your-application-name/your-device-name/la"
    }
}

Update Label of 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: your-device-id must be starting with CAE760571675

Method

PUT

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/json;ty=3

Accept

application/json

Body

{
    "m2m:cnt": {
    "lbl": ["your-device-label1", "your-device-label2", "...etc"]
    }
}
  • Response

{
    "m2m:cnt": {
        "lt": "20220810T150442",
        "lbl": [
            "your-device-label1",
            "your-device-label2",
            "...etc"
        ],
        "st": 4
    }
}

Delete 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: your-device-id must be starting with CNT. e.g. CNT-842419289

Method

PUT

Header

Key

Value

X-M2M-Origin

antares-access-key

Content-Type

application/json

Accept

application/json

Last updated