
GXV3240/3275 GMI Web Service v1.9 User Guide
-0000=0&var-0001=212&val-0001=1&format=json&jsoncallback=?
Return
• Upgrade setup successful
"{"res": "success", "flag":"1"}"
• Upgrade setup failed
"{"res": "error", "msg":"phone rebooting"}"
2.
callbackFunction(data) will process the data returned from HTTP
request
setParameter(confItem[ ], callbackFuntion)
Description
Phone's configuration (set up video, call and other parameters)
Configuration item structure. Each configuration item contains two
fields with the following format:
ConfItem
{
value; //P value
key; //nvram address (P parameter)
}
Parameters
ConfItem: Phone's configuration (array)
callbackFunction: Call back function
Http Request
URL: http://" + ip +"/manager?"
action: "put"
var-0000: val1 //Key
val-0000: var1 //Value
var-0001: val2 //Key
val-0001: var2 //Value
....
var-xxxx
val-xxxx
format: "json"
jsoncallback: "?" (This is the HTTP request for the call back function,
usually used in AJAX and JQuery)
For example:
http://192.168.121.230/manage
r?action=put&var-0000=7044&val-0000
-0001=904&val-0001=15&format=json&jsoncallback=?
Return
Configure successful
"{"res": "success", "flag":"1"}"
Configure failed
Komentarze do niniejszej Instrukcji