Select your printer model
Parameters are refined by the selected printer.
<type>oncommandreply</type>
Acquires the response data to the command sent by the <type>sendcommand</type> element and notifies the application of it.
Response
Child element |
Data type |
Description |
---|---|---|
status |
string |
Data reception status |
data |
string |
Command string |
status
Element value |
Description |
---|---|
“SUCCESS” |
Data reception succeeded. |
Sample program
<data> <type>oncommandreply</type> <status>SUCCESS</status> <data>1B123344FF1F5D3C</data> </data> |
Supplementary explanation
- Since data from the device may be divided into multiple responses, be sure to use
the <type>oncommandreply</type> element to confirm that the entire response data has
been received.
If data is divided into multiple responses, the <type>oncommandreply</type> element occurs several times. Wait for the succeeding data before proceeding with the process. - When a communication error occurs, communication disconnection is not notified.
To notify the disconnection event, implement the <reconnect>.
Quick Access
- [Name]
- [Format]
- [Range]
- [Description]
- [Notes]
ePOS-Device XML includes patented or patent pending functions. The contents must not
be disclosed to third parties.
- Introduction
- help
- Message
- CommunicationBox Messages
- Device Messages
- DeviceHubTerminal
- BarcodeScanner
- Printer
- <type>print</type>
- <type>onxmlresult</type>
- <epos-print>
- <response>
- <text>
- <feed>
- <image>
- <logo>
- <barcode>
- <symbol>
- <hline>
- <vline-begin>
- <vline-end>
- <page>
- <area>
- <direction>
- <position>
- <line>
- <rectangle>
- <cut>
- <pulse>
- <sound>
- <command>
- <layout>
- <recovery>
- <reset>
- <batch-begin>
- <batch-end>
- <rotate-begin>
- <rotate-end>
- HybridPrinter
- <type>lock</type>
- <type>unlock</type>
- <type>print</type>
- <type>onxmlresult</type>
- <type>slipwaitinsertion</type>
- <type>slipprint2</type>
- <type>slipcancel</type>
- <type>endorsewaitinsertion</type>
- <type>endorseprint2</type>
- <type>endorsecancel</type>
- <type>validationwaitinsertion</type>
- <type>validationprint2</type>
- <type>validationcancel</type>
- <type>micrread</type>
- <type>micrcleaning</type>
- <type>micrcancel</type>
- <type>eject</type>
- <type>onreceive</type>
- CustomerDisplay
- Keyboard
- POSKeyboard
- MSR
- SerialDevice
- Storage
- OtherPeripheral
- Appendix