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

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 45
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 33
GXV3240/3275 GMI Web Service v1.9 User Guide
Page 33 of 44
-0000=0&var-0001=212&val-0001=1&format=json&jsoncallback=?
Return
1. HTTP request 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
=0&var
-0001=904&val-0001=15&format=json&jsoncallback=?
Return
1. HTTP request return:
Configure successful
"{"res": "success", "flag":"1"}"
Configure failed
Przeglądanie stron 33
1 2 ... 29 30 31 32 33 34 35 36 37 38 39 ... 44 45

Komentarze do niniejszej Instrukcji

Brak uwag