w w w . s m a x . c o m . t w
Chapter 6.
6.1.1.3. System date and time
Examples(a) : Get system date and time
http:// camera_ip:port r/cgi/admin/date.cgi?action=get
Return:
P 70
Return:
OK
HTTP/1.1 200 OK\r\n
Content-Type: text/plain\r\n
Content-Length: <content length>\r\n
\r\n
2007/1/20 15:20:25\r\n
FAIL
HTTP/1.1 200 OK\r\n
Content-Type: text/plain\r\n
Content-Length: <content length>\r\n
\r\n
Request failed: <error message>\r\n
Examples(b) : Set system date and time
http:// camera_ip:port /cgi/admin
/date.cgi?action=set&year=2005&month=4&day=3
Return:
OK
HTTP/1.1 200 OK\r\n
Content-Type: text/plain\r\n
Content-Length: <content length>\r\n
\r\n
ok\r\n
FAIL
HTTP/1.1 200 OK\r\n
Content-Type: text/plain\r\n
Content-Length: <content length>\r\n
\r\n
Request failed: <error message>\r\n
6.1.2. Maintenance
6.1.2.1. Factory Default
Syntax:
---------------------------------------------------------------------------
http:// camera_ip:port /cgi/admin
/factorydefault.cgi?mode=value
---------------------------------------------------------------------------
Example:
http:// camera_ip:port /cgi/admin
/factorydefault.cgi?mode=1
with the following parameter and value for reference
<parameter>=<value>
Value
Description
mode=<string>
1,
2
1 : Reset all parameters to
the original factory settings.
2 : Reset all parameters
except the IP, time zone and
daylight saving to the
original factory settings.