Device
Create
Request
Header
Body
{
"m2m:cnt": {
"rn": "your-device-name"
}
}
Header
Body
<m2m:cnt xmlns:m2m="http://www.onem2m.org/xml/protocols" rn="your-device-name">
</m2m:cnt>
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"
}
}
<?xml version="1.0" encoding="UTF-8"?>
<m2m:cin xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/
xml/protocols/homedomain" rn="cin_178578843">
<ty>4</ty>
<ri>/antares-cse/cin-178578843</ri>
<pi>/antares-cse/cnt-995741382</pi>
<ct>20191119T171604</ct>
<lt>20191119T171604</lt>
<st>0</st>
<cnf>text/plain:0</cnf>
<cs>100</cs>
<con><obj>
<num key1="value1"/>
<str key2="value2"/>
<bool keyN="valueN"/>
</obj></con>
</m2m:cin>
Retrieve All Devices ID of a Particular Application
Request
Header
Header
Response
{
"m2m:uril": [
"/antares-cse/antares-id/your-application-name/you-device-name",
"/antares-cse/antares-id/your-application-name/you-device-name2",
]
}
<?xml version="1.0" encoding="UTF-8"?>
<m2m:uril xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/
xml/protocols/homedomain">/antares-cse/antares-id/your-application-name/your-device-name
/antares-cse/antares-id/your-application-name/your-device-name2
</m2m:uril>
Retrieve a Particular Device
Request
Header
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"
}
}
<?xml version="1.0" encoding="UTF-8"?>
<m2m:cnt xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/xml/
protocols/homedomain" rn="your-device-name">
<ty>3</ty>
<ri>/antares-cse/cnt-456680027</ri>
<pi>/antares-cse/CAE492050112</pi>
<ct>20191119T162939</ct>
<lt>20191119T162939</lt>
<acpi>/antares-cse/acp-35730207</acpi>
<acpi>/antares-cse/acp-891035820</acpi>
<et>20201119T162939</et>
<st>0</st>
<mni>30000000</mni>
<mbs>10000</mbs>
<mia>0</mia>
<cni>0</cni>
<cbs>0</cbs>
<ol>/antares-cse/antares-id/your-application-name/your-device-name/ol</ol>
<la>/antares-cse/antares-id/your-application-name/your-device-name/la</la>
</m2m:cnt>>
Update Label of Device
Request
Header
Body
{
"m2m:cnt": {
"lbl": ["your-device-label1", "your-device-label2", "...etc"]
}
}
Header
Body
<m2m:cnt xmlns:m2m="http://www.onem2m.org/xml/protocols">
<lbl>your-device-label1</lbl>
<lbl>your-device-label2</lbl>
<lbl>...etc</lbl>
</m2m:cnt>
Response
{
"m2m:cnt": {
"lt": "20220810T150442",
"lbl": [
"your-device-label1",
"your-device-label2",
"...etc"
],
"st": 4
}
}
<?xml version="1.0" encoding="UTF-8"?>
<m2m:cnt xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/xml/protocols/homedomain">
<lt>20220810T144737</lt>
<lbl>your-device-label1 your-device-label2 ...etc</lbl>
<st>3</st>
</m2m:cnt>
Delete a Particular Device
Request
Header
Header
Last updated