Get Value of a Process Dictionary Entry
-
Description
POST /proc_get HTTP/1.1
{"key":"[key]"} -
Possible Responses
{"code":0,"key":"[key]","value":"[value]"}{"code":1,"message":"Operation failed"} -
Notes
- Read the value of key
[key]from the running XXTouch service process dictionary on the device - If no value exists for
[key], it returns failure
- Read the value of key
-
Example
Script on device
proc_put("username", "test_user")Request
POST /proc_get HTTP/1.1
Content-Length: 18
{"key":"username"}Response
{"code":0,"key":"username","value":"test_user"}