Touchscreen(x, y, msec, callbackfunction) – Grandstream GXV3275 GMI Web Service Guide User Manual
Page 39
GXV3240/3275 GMI Web Service v1.9 User Guide
Page 38 of 44
Return
1. HTTP request return:
• "{"res": "success"}"
• "{"res": "error", "msg" : "save grab failed"}" //dbus return empty
• "{"res" : "error", "msg": "path is empty" }" //path is empty
• "{"res" : "error", "msg": "filename is empty" }"
• "{"res" : "error", "msg": "save pictrue failed" }" //Save failed
• "{"res" : "error", "msg": "wrong extension" }" //Postfix is
wrong
• "{"res" : "error", "msg": "lost the extension" }" //No postfix
2. callbackFunction(data) will process the data returned from HTTP
request
touchScreen(x, y, msec, callbackFunction)
Description
Simulate to tap on touch screen (GMI 10)
Parameters
• x ------ abscissa value
• y ------ ordinate values
• msec ------ ms duration
• callbackFunction: Call back function
Http Request
• URL: "http://" + ip +"/manager?"
• Action: "touchscreen"
• px” x
• py: y
• msec: 3000
• 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/manager?action=touchscreen&px=100&py=200
&msec=3000&format=json& jsoncallback=?"
Return
1. HTTP request return:
• "{"res" : "success"}"
• "{"res" : "error", "msg": "the point out of screen" }"
2. callbackFunction(data) will process the data returned from HTTP
request