Select your printer model
<reconnect>
Requests for reconnection between the printer and the network, and then notifies the application of the acquired result.
Request
Element |
Data type |
Description |
---|---|---|
old_client_id |
string |
Specify the client_id received by <connect> in the previous session. |
new_client_id |
string |
Specify the client_id received by <connect> in the current session. |
received_id |
int |
Specify the last data_id of those received in each data communication. |
Sample program
<reconnect> <data> <new_client_id>1234567890</new_client_id> <old_client_id>0987654321</old_client_id> <received_id>112</received_id> </data> </reconnect> |
Response
Element |
Data type |
Description |
---|---|---|
code |
string |
Reconnection confirmation result |
code
Element value |
Description |
---|---|
"OK" |
Reconnection succeeded. |
“CLIENT_NOT_FOUND” |
Connection corresponding to the specified client_id does not exist. |
“PARAM_ERROR” |
A parameter error occurred. |
“SYSTEM_ERROR” |
A system error occurred. |
Sample program
- Normal case
-
<reconnect> <code>OK</code> </reconnect>
- Abnormal case
-
<reconnect> <code>PARAM_ERROR</code> </reconnect>
Quick Access
- [Name]
- [Format]
- [Range]
- [Description]
- [Notes]
- 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