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
Note!! Key adalah nama variable sedangkan value adalah nilai dari variable tersebut.
Response
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
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
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
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
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
Last updated