Antares
id
Search
⌃K
Links
Comment on page

Data of Device

Store Data of a Particular Device

  • Request
JSON
XML
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
1
{
2
"m2m:cin": {
3
"con": "{\"key1\":\"integer-value\", \"key2\":\"string-value\", \"keyN\":\"valueN\"}"
4
}
5
}
6
​
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/xml;ty=4
Accept
application/xml
Body
1
<?xml version="1.0" encoding="UTF-8" ?>
2
<root>
3
<m2m:cin>
4
<con>{"key1":"integer-value", "key2":"string-value", "keyN":"valueN"}</con>
5
</m2m:cin>
6
</root>
Note!! Key adalah nama variable sedangkan value adalah nilai dari variable tersebut.
  • Response
JSON
XML
{
"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\"}"
}
}
1
<?xml version="1.0" encoding="UTF-8"?>
2
<m2m:cin xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/
3
xml/protocols/homedomain" rn="cin_178578843">
4
<ty>4</ty>
5
<ri>/antares-cse/cin-178578843</ri>
6
<pi>/antares-cse/cnt-995741382</pi>
7
<ct>20191119T171604</ct>
8
<lt>20191119T171604</lt>
9
<st>0</st>
10
<cnf>text/plain:0</cnf>
11
<cs>100</cs>
12
<con><obj>
13
<num key1="value1"/>
14
<str key2="value2"/>
15
<bool keyN="valueN"/>
16
</obj></con>
17
</m2m:cin>

Retrieve all Data Content of Device

  • Request
JSON
XML
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
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/xml
Accept
application/xml
  • Response
JSON
XML
{
"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"}"
}
}
]
}
1
<?xml version="1.0" encoding="UTF-8"?>
2
<m2m:list xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/xml/protocols/homedomain%22%3E
3
<m2m:cin rn="cin_zTLhcucd8f4OHqwBnKTH7OctolTORJKu">
4
<ty>4</ty>
5
<ri>/antares-cse/cin-zTLhcucd8f4OHqwBnKTH7OctolTORJKu</ri>
6
<pi>/antares-cse/cnt-eSGc7dlEqLPzfee3</pi>
7
<ct>20230320T075808</ct>
8
<lt>20230320T075808</lt>
9
<st>0</st>
10
<cnf>text/plain:0</cnf>
11
<cs>14</cs>
12
<con>{&#34;status&#34;:&#34;0&#34;}</con>
13
</m2m:cin>
14
</m2m:list>

Retrieve All Data ID of Device

  • Request
JSON
XML
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
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/xml
Accept
application/xml
  • Response
JSON
XML
{
"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"
]
}
1
<?xml version="1.0" encoding="UTF-8"?>
2
<m2m:uril xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/
3
xml/protocols/homedomain">/antares-cse/antares-id/nama-application-anda/nama-device-anda/cin_893238184
4
/antares-cse/antares-id/nama-aplikasi-anda/nama-device-anda/cin_178578843</m2m:uril>

Retrieve Particular Data of Device

  • Request
JSON
XML
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/data-from-device-ID or
https://platform.antares.id:8443/~/antares-cse/data-from-device-ID Note: data-from-device-ID merupakan salah satu yang didapatkan ketika Retrieving All Data of Device ID. harus diawali dengan cin. e.g. cin-122882447
Method
GET
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/json
Accept
application/json
Field
Value
URL
https://platform.antares.id:8443/~/antares-cse/antares-id/your-application-name/your-device-name/data-from-device-ID or
https://platform.antares.id:8443/~/antares-cse/data-from-device-ID Note: data-from-device-ID merupakan salah satu yang didapatkan ketika Retrieving All Data of Device ID. harus diawali dengan cin. e.g. cin-122882447
Method
GET
Header
Key
Value
X-M2M-Origin
antares-access-key
Content-Type
application/xml
Accept
application/xml
  • Response
JSON
XML
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\"}"
}
}
Result
1
<?xml version="1.0" encoding="UTF-8"?>
2
<m2m:cin xmlns:m2m="http://www.onem2m.org/xml/protocols" xmlns:hd="http://www.onem2m.org/
3
xml/protocols/homedomain" rn="cin_893238184">
4
<ty>4</ty>
5
<ri>/antares-cse/cin-893238184</ri>
6
<pi>/antares-cse/cnt-995741382</pi>
7
<ct>20191119T180722</ct>
8
<lt>20191119T180722</lt>
9
<st>0</st>
10
<cnf>text/plain:0</cnf>
11
<cs>62</cs>
12
<con>{"key1":integer-value, "key2":"string-value", "keyN":"valueN"}</con>
13
</m2m:cin>

Retrieve Latest Data

  • Request
JSON
XML
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
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/xml;ty=4
Accept
application/xml
  • Response
JSON
XML
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\"}"
}
}
Result
<?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_893238184">
<ty>4</ty>
<ri>/antares-cse/cin-893238184</ri>
<pi>/antares-cse/cnt-995741382</pi>
<ct>20191119T180722</ct>
<lt>20191119T180722</lt>
<st>0</st>
<cnf>text/plain:0</cnf>
<cs>62</cs>
<con>{"key1":integer-value, "key2":"string-value", "keyN":"valueN"}</con>
</m2m:cin>

Retrieve Oldest Data

  • Request
JSON
XML
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
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/xml;ty=4
Accept
application/xml
  • Response
JSON
XML
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>"
}
}
Result
<?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>
Last modified 2mo ago