Device

Create

  • Request

Header

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

Header

  • 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

Header

  • 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

Header

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

Header

Last updated