Grandstream GXV3275 GMI Web Service Guide Instrukcja Użytkownika Strona 39

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 45
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 38
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 t
he data returned from HTTP
request
Przeglądanie stron 38
1 2 ... 34 35 36 37 38 39 40 41 42 43 44 45

Komentarze do niniejszej Instrukcji

Brak uwag