BARIX Instreamer Uživatelský manuál Strana 28

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 39
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 27
Technical Documentation “Instreamer “ - V4.03 - 24th October 2013
The whole mark is replaced by the dynamic value formatted with the <format> string. Only one value is allowed per dynamic mark. The
length of the dynamic mark mustn't exceed 500 characters. The resulting string from the dynamic mark must not exceed 500
characters.
A dynamic mark can be contained in an another dynamic mark. Only one recursion step is allowed and correct “escaping” has to be applied.
Example:
&LSetup(3,"%s",419,B,!0,"<meta http-equiv=refresh content=\"&LSetup(1,\"%u\",419)\;; url=info.html\">");
Note the special “\” before the semicolon of the dynamic mark inside. This is because the escape sequence is interpreted as only a semicolon and is
needed in order to include the prohibited sequence “);” inside a dynamic mark.
2.15 Configuration via HTML Pages
The HTML pages for the device configuration use the functionality for dynamic web pages (see 2.14 Dynamic Web Page). All of the configuration
parameters are placed in HTML forms and are transferred by the method GET. Some of the values are checked by java script to prevent wrong values.
Not all of the configuration parameters have to be present in a form. It is possible to have only a part of the configuration on a web page. The form has
to start with the following two tags:
<form method=GET action=setup.cgi target="answer"><input type="hidden" type="text" name=L
value=uirnetwork.html>
The target of the form could be changed. The answer after transmitting the form will be the HTML page uirnetwork.html. For another HTML page
change this value. If this value isn't available only the HTTP status 200 OK will be sent back.
The following example shows how to implement a form field for the configuration value of the highest byte in the 'own IP address'.
The input element name is a defined string, which has to be handled with care (see more about this below). The type character B stands for an
unsigned value (see table below). 0 is the address of the expected configuration parameter (see table in 2.11 Setup).
The value is a dynamic mark (see table below).
<input name=B0 size=3 maxlength=3 value=&LSetup(1,"%u",0); onChange=IPCheck(this)>
In the next example the name selects the configuration parameter 'CTS close command' in the setup (see table in 2.11 Setup).
<input name=S535 size=20 maxlength=20 value='&LSetup(4,"%s",535);'>
To set a password also the name Sxxx is used with the address of the corresponding password level. The max. length if the plain password is 24. The
delete the password use 24 or more characters (ex. 25 spaces). The device builds the MD5 hash over the plain password and stores the lower 8
bytes. All 8 bytes set to 0 means no password set.
28 Software Application Interface Software Application Interface 28
Zobrazit stránku 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 38 39

Komentáře k této Příručce

Žádné komentáře