User Manual
ADAM-6000 Series User Manual 294
D.2.7 Stream
D.4.2.1 POST {target URL}
Request The content-type will be ‘text/xml’.
{target URI} : is the remote server URI which will deal with the
request
The coming data with the request will be {XML}.
{XML} : The pure text XML describes the stream contents.
The XML will look like below
<?xml version="1.0" ?>
<ADAM-6051 sn=”{sequence number}”>
<STM>
<TYPE>DI</TYPE>
<ID>0</ID>
<VALUE>1</VALUE>
</STM>
<STM>
<TYPE>DI</TYPE>
<ID>1</ID>
<VALUE>0</VALUE>
</STM>
…
…
<STM>
<TYPE>CNT</TYPE>
<ID>1</ID>
<VALUE>12000</VALUE>
</STM>
</ADAM-6051>
{sequence number} : the sequence number of the stream packet
Response The remote server can simply return HTTP status code 2xx to
indicate the data has been received.
Remarks If the remote server returns a HTTP status code rather than 2xx,
the ADAM device may need to record this error or retransmit the
packet depends on the firmware specification.