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 key [key] from the running XXTouch service process dictionary on the device
    • If no value exists for [key], it returns failure
  • Example

    Script on device

    proc_put("taozi", "Peach is a nice person")

    Request

    POST /proc_get HTTP/1.1
    Content-Length: 15

    {"key":"taozi"}

    Response

    {"code":0,"key":"taozi","value":"Peach is a nice person"}