4: Configuration Using XML
SGX 5150 IoT Device Gateway Command Reference
18
TM
Figure 4-8 XML Example of Multiple Items
<configrecord version="0.1.0.0T0">
<configgroup name="device">
<configitem name="short name">
<value>sgx5150</value>
</configitem>
<configitem name="long name">
<value>Lantronix SGX5150</value>
</configitem>
<configitem name="serial number">
<value>0080A3946149</value>
</configitem>
</configitem><configitem name="firmware version">
<value>8.1.0.1R16</value>
</configitem><configitem name="lantronix iot gateway os version">
<value>1.0</value>
</configitem>
</configgroup>
Figure 4-9 XML Example with Multiple Groups
<configrecord version="0.1.0.0T0">
<configgroup name="diagnostics">
<configitem name="log">
<value name="output">Disable</value>
</configitem>
</configgroup>
<configgroup name=“discovery">
<configitem name=“state">
<value>enable</value>
</configitem>
<configitem name=“upnp state">
<value>enable</value>
</configitem>
<configitem name=“upnp port">
<value>30179</value>
</configitem>
</configgroup>
<configgroup name=“ethernet" instance="eth0">
<configitem name=“speed">
<value>Auto</value>
</configitem>
<configitem name=“duplex">
<value>Auto</value>
</configitem>
</configgroup>
<configgroup name=“ftp server">
<configitem name=“state">
<value>enable</value>
</configitem>
</configgroup>