Technical Documentation “Instreamer “ - V4.03 - 24th October 2013
This example shows how to implement a form field for the configuration of the Netmask. The names for the bytes of the Netmask are N8B0, N8B1,
N8B2 and N8B3. 8 is the address of the Netmask in the common setup (see table in 2.11 Setup). The value after the B is the byte number of the byte
in the Netmask starting with 0 for the first byte at the left. This special handling for Netmask is needed because the Netmask is stored in one byte and
not like the IP address in 4 bytes.
<input name=N8B0 size=3 maxlength=3 value=&LSetup(2,"%u",8,0); onChange=netMaskCheck(this)>
The next example shows how to implement a form field for the configuration of the parameter 'Flow control' as a selection. If the value of the
configuration parameter is equal to the second last parameter in the dynamic mark it will be replaced by the last parameter of the dynamic mark.
<select size=1 name=B82>
<option value=0 &Lsetup(3,"%s",82,B,0,"selected");>none</option>
<option value=1 &LSetup(3,"%s",82,B,1,"selected");>Software (XON/XOFF)</option>
<option value=2 &LSetup(3,"%s",82,B,2,"selected");>Hardware (RTS/CTS)</option>
</select>
This example shows how to implement radio buttons for the configuration parameter 'Sonic IP'. The function of the dynamic marks are equal to the
example above.
<input type=radio name=B277b7 value=0&LSetup(3,"%s",277,b7,0," checked");>Yes<input type=radio name=B277b7
value=1&LSetup(3,"%s",277,b7,1," checked");>No
To transmit the new configuration data to the device the submit input type of the form is used.
<input type=submit value=' Apply '>
By pressing the Apply button the new configuration data will be transferred to the device. It will store the new data to its configuration memory
(EEPROM). After this it sends the answer (see above) to the browser and then it reboots itself to apply the new configuration.
29 Software Application Interface Software Application Interface 29
Comentarios a estos manuales