CGI

Others CGI

Version / Author / DateModify
1.0/David/2013-03-30First edition

Test the message parameter settings on the IP Camera normal work

Mail_test.cgi

  • Permissions requirements:
Administrative privileges
  • Syntax:
/ Mail_test.cgi [? User = & pwd = & session = & json = & jsonp_callback = & json = & jsonp_callback = & result =]
  • Parameters:
User / pwd: Parameter authentication method required to login username / password
session: Session authentication method required to Session ID
json / jsonp_callback: return the json type of data set
The result: the return of the corresponding variable name set. .
  • Returns:
Result:
0: Success
-1: System error
-2: Parameter error
-3: Unable to connect to server
-4: STARTTLS error
-5: TLS error
-6: Server Error
-7: Unsupported authentication method
-8: Authentication failure
-9: Message was rejected
-10: Timeout.
  • Example:
Http://192.168.0.188/mail_test.cgi?session=1891048766
IP Camera Back:
var result = 0;

Search for Wi-Fi hotspots

Wifi_scan.cgi

  • Permissions requirements:
Administrative privileges
  • Syntax:
/ Wifi_scan.cgi [? User = & pwd = & session = & json = & jsonp_callback = & result = & bssid = & ssid = & type = & auth = & encrypt = & rssi =]
  • Parameters:
User / pwd: Parameter authentication method required to login username / password
session: Session authentication method required to Session ID
json / jsonp_callback: return the json type of data set
result / bssid / ssid / type / auth / encrypt / rssi: set the variable name returned.
  • Returns:
If the return js text
result: <0: search operation failed;> = 0: the search for the number of hot spots
bssid: array variables, hotspots bssid,
ssid: an array of variables, hotspot ssid
type: array variable, hot type; 0: Infra; 1: Adhoc
auth: array variables, hotspot authentication types
0: open
1: Shared
2: Automatic
3: WPA-PSK
4: WPA2-PSK
5: WPA-NONE
encrypt: array variable, hot encryption algorithm
0: no
1: WEP
2: TKIP
3: AES
rssi: array variables, hotspot signal strength
If you return a json text
result: <0: search operation failed;> = 0: the search for the number of hot spots
ap array of objects, ap objects include:
bssid, ssid, type, auth, encrypt, rssi
  • Example:
Http://192.168.0.188/wifi_scan.cgi?session=1891048766
IP Camera Back:
var result = 2;
var bssid = new Array ();
var ssid = new Array ();
var type = new Array ();
var auth = new Array ();
var encrypt = new Array ();
var rssi = new Array ();
bssid [0] = '00229324e7cc ';
ssid [0] = 'ChinaNet-VwtK';
type [0] = 0;
auth [0] = 3;
encrypt [0] = 2;
rssi [0] = 167;
bssid [1] = 'e005c545646a';
ssid [1] = 'Ajisai';
type [1] = 0;
auth [1] = 3;
encrypt [1] = 3;
rssi [1] = 193;

Certification specified user

Check_user.cgi

  • Permissions requirements:
Any permissions
  • Syntax:
/Check_user.cgi [? User = & pwd = & json = & jsonp_callback = & user_val = & pwd_var = & group =]
  • Parameters:
User / pwd: Parameter authentication method required to login username / password
json / jsonp_callback: return the json type of data set
user_var / pwd_val / group: set the variable name returned.
  • Returns:
Group: user permissions, <0 indicates no such user or password is incorrect
user: authenticated username
pwd: authenticated user password
Copyright:Shenzhen Reecam Tech. Ltd.

ICP:粤ICP备09050685号 Technical support:800069965