Epson TM-H6000IV-DT ePOS-Device XML Users Manual - Page 44
Array of <data> elements in <device_data> message
![]() |
View all Epson TM-H6000IV-DT manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 44 highlights
Application A Closes the Communication Box 3 box1 "\0" ePOS-Device 3 box1 OK 3 "\0" 3 box1 OK 4 "\0" Application B 3 box1 "\0" Array of elements in message The following programming method is used to describe an array in the tag: ❏ Specify the attribute array="true" at the beginning of the element to be used for the array. ❏ After that, specify a value with the same element name. Example: To express "keycodes=[49, 50, 51, 52];" setprefix 49 50 51 52 44
![](/manual_guide/products/epson-tmh6000ivdt-eposdevice-xml-user-s-manual-7d8f9ec/44.png)
44
Array of <data> elements in <device_data> message
The following programming method is used to describe an array in the <data> tag:
❏
Specify the attribute array="true" at the beginning of the element to be used for the array.
❏
After that, specify a value with the same element name.
Closes the Communication Box
<close_commbox>
<sequence>3</sequence>
<data>
<box_id>box1</box_id>
</data>
</close_commbox>"\0"
<close_commbox>
<sequence>3</sequence>
<data>
<box_id>box1</box_id>
<code>OK</code>
</data>
<data_id>3</data_id>
</close_commbox>"\0"
<close_commbox>
<sequence>3</sequence>
<data>
<box_id>box1</box_id>
</data>
</close_commbox>"\0"
<close_commbox>
<sequence>3</sequence>
<data>
<box_id>box1</box_id>
<code>OK</code>
</data>
<data_id>4</data_id>
</close_commbox>"\0"
Application A
ePOS-Device
Application B
<data>
<type>setprefix</type>
<keycodes array="true">49</keycodes>
<keycodes>50</keycodes>
<keycodes>51</keycodes>
<keycodes>52</keycodes>
</data>
Example: To express "keycodes=[49, 50, 51, 52];"