Set Value of a Process Dictionary Entry
-
Description
POST /proc_put HTTP/1.1
{"key":"[key]","value":"[value]"} -
Possible Responses
{"code":0,"message":"Success","key":"[key]","old_value":"[old]","value":"[new]"}{"code":1,"message":"Operation failed"} -
Notes
- Store an entry with key
[key]and value[value]into the running XXTouch service process dictionary on the device [key]is used to retrieve the value[value]is a string
- Store an entry with key
-
Example
Request
POST /proc_put HTTP/1.1
Content-Length: 45
{"key":"havonz","value":"Su Ze is a nice person"}Script on device
sys.alert(proc_get("havonz"))