Sample Call |
1. Read the resource of a gateway with object
ID. Curl:curl -X GET --header 'Accept: application/json' --header 'Authorization: Basic ZG9jdXNlcjpBc2RmMSM=' 'http://<impact_url>/m2m/gateway/DEVKIT_779/3’
Response
Body:{
"requestId": "53782880-77c3-4281-a849-aa934accb7f5",
"msg": "Accepted"
} Final
Response to callback
URL:{"reports":[],"registrations":[],"deregistrations":[],"updates":[],"expirations":[],"responses":[{"serialNumber":"DEVKIT_779","timestamp":1484206109976,"requestId":"53782880-77c3-4281-a849-aa934accb7f5","creationDate":null,"make":null,"model":null,"firmwareVersion":null,"groupName":null,"imsi":null,"address":null,"freeFormAddress":null,"protocol":"LWM2M","resources":[{"resourcePath":"3","value":"{\"3/0/2\":\"345000123\",\"3/0/1\":\"Lightweight M2M Client\",\"3/0/0\":\"Open Mobile Alliance\",\"3/0/16\":\"U\",\"3/0/6/1\":\"5\",\"3/0/6/0\":\"1\",\"3/0/7/1\":\"5000\",\"3/0/9\":\"100\",\"3/0/11/0\":\"0\",\"3/0/7/0\":\"3800\",\"3/0/8/1\":\"900\",\"3/0/3\":\"1.0\",\"3/0/8/0\":\"125\",\"3/0/10\":\"15\",\"3/0/13\":\"Thu May 02 06:40:15 EDT 2013\",\"3/0/14\":\"+02:00\"}"}],"result":{"code":0,"subCode":null,"reason":"Success"}}]}
2.
Read the resource of a gateway with object ID and instance
ID. Curl:curl -X GET --header 'Accept: application/json' --header 'Authorization: Basic ZG9jdXNlcjpBc2RmMSM=' 'http://<impact_url>/m2m/gateway/DEVKIT_779/3/0' Response
Body:{
"requestId": "7be7a015-7b48-477a-89e2-3124e754bea5",
"msg": "Accepted"
} Final
Response to callback
URL:{"reports":[],"registrations":[],"deregistrations":[],"updates":[],"expirations":[],"responses":[{"serialNumber":"DEVKIT_779","timestamp":1484206214402,"requestId":"7be7a015-7b48-477a-89e2-3124e754bea5","creationDate":null,"make":null,"model":null,"firmwareVersion":null,"groupName":null,"imsi":null,"address":null,"freeFormAddress":null,"protocol":"LWM2M","resources":[{"resourcePath":"3/0","value":"{\"3/0/2\":\"345000123\",\"3/0/1\":\"Lightweight M2M Client\",\"3/0/0\":\"Open Mobile Alliance\",\"3/0/16\":\"U\",\"3/0/6/1\":\"5\",\"3/0/6/0\":\"1\",\"3/0/7/1\":\"5000\",\"3/0/9\":\"100\",\"3/0/11/0\":\"0\",\"3/0/7/0\":\"3800\",\"3/0/8/1\":\"900\",\"3/0/3\":\"1.0\",\"3/0/8/0\":\"125\",\"3/0/10\":\"15\",\"3/0/13\":\"Thu May 02 06:40:15 EDT 2013\",\"3/0/14\":\"+02:00\"}"}],"result":{"code":0,"subCode":null,"reason":"Success"}}]}
3.
Read the resource of an gateway with object ID, Instance ID, and resource
ID. Curl:curl -X GET --header 'Accept: application/json' --header 'Authorization: Basic ZG9jdXNlcjpBc2RmMSM=' 'http://<impact_url>/m2m/gateway/DEVKIT_779/3/0/9' Response
Body:{
"requestId": "3bc33b95-6a65-4aa2-8fd6-927993f08de7
",
"msg": "Accepted"
} Final
Response to callback
URL:{"reports":[],"registrations":[],"deregistrations":[],"updates":[],"expirations":[],"responses":[{"serialNumber":"DEVKIT_779","timestamp":1484206240383,"requestId":"3bc33b95-6a65-4aa2-8fd6-927993f08de7","creationDate":null,"make":null,"model":null,"firmwareVersion":null,"groupName":null,"imsi":null,"address":null,"freeFormAddress":null,"protocol":"LWM2M","resources":[{"resourcePath":"3/0/9","value":"{\"3/0/9\":\"100\"}"}],"result":{"code":0,"subCode":null,"reason":"Success"}}]}
4.
Read the resource of an gateway with object ID, Instance ID , resource ID, and instance
resource
ID Curl:curl -X GET --header 'Accept: application/json' --header 'Authorization: Basic ZG9jdXNlcjpBc2RmMSM=' 'http://<impact_url>/m2m/gateway/DEVKIT_779/3/0/7/1' Response
Body:{
"requestId": "04139ca8-2d7f-4e88-8ccf-334f7cecba73
",
"msg": "Accepted"
} Final
Response to callback
URL:{"reports":[],"registrations":[],"deregistrations":[],"updates":[],"expirations":[],"responses":[{"serialNumber":"DEVKIT_779","timestamp":1484206434804,"requestId":"04139ca8-2d7f-4e88-8ccf-334f7cecba73","creationDate":null,"make":null,"model":null,"firmwareVersion":null,"groupName":null,"imsi":null,"address":null,"freeFormAddress":null,"protocol":"LWM2M","resources":[{"resourcePath":"3/0/7/1","value":"{\"3/0/7/1/1\":\"5000\",\"3/0/7/1/0\":\"3800\"}"}],"result":{"code":0,"subCode":null,"reason":"Success"}}]}
|