Skip to main content

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 the entry keyed by [key] in the running XXTouch service process dictionary on the device
    • If the entry keyed by [key] has no value, the request fails
  • Example

    If the device script runs:

    proc_put("username", "test_user")

    Send this request to the device:

    POST /proc_get HTTP/1.1
    Content-Length: 18

    {"key":"username"}

    The device returns:

    {"code":0,"key":"username","value":"test_user"}