Some devices and services return parameters that are numeric values in response to requests, e.g:



In order to read parameter value of "1" for DAY_ENERGY and PAC, the following script should be created:

local resp = Gate_HTTP->virtual_object->ResponseBody 
Gate_HTTP->variable1=resp.Body.Data.DAY_ENERGY.Values["1"]
Gate_HTTP->variable2=resp.Body.Data.PAC.Values["1"]


HTML