Pairs an external device.
Identifier: request_binding
<action id="bind_device" type="request_binding"> <param name="device_id">#{external_device_id}</param> <param name="timeout_ms" type="long">10000</param> </action>
Since the action has no "SUCCESS" output, you need to validate the connection. This can be done as shown in this example:
<rule id="device_connected"> <expression> <![CDATA[#{extdevices.CONNECTION_STATUS} == #{const:extdevices.CONNECTED}]]> </expression> <actions> <action ref="my_action" /> </actions> </rule>
Attempts to connect and send print content to a Zebra printer.
Identifier: print_zebra_label
<action id="print_label" type="print_zebra_label"> <param name="type">tcp</param> <param name="format">cpcl</param> <param name="ipaddress">10.10.10.10</param> <param name="port">2020</param> <param name="content"><![CDATA[ ?{ var msg = "\n" + "! 0 200 200 210 1\r\n" + "TONE 99\r\n" + "SPEED 98\r\n" + "T 4 0 0 80 TEST 1234\r\n" + "FORM\r\n" + "PRINT"; msg}? ]]></param></action>
<action id="print_label" type="print_zebra_label"> <param name="type">bluetooth</param> <param name="format">cpcl</param> <param name="mac"> 48:A4:93:02:CB:F1</param> <param name="content"><![CDATA[ ?{ var msg = "\n" + "! 0 200 200 210 1\r\n" + "TONE 99\r\n" + "SPEED 98\r\n" + "T 4 0 0 80 TEST 1234\r\n" + "FORM\r\n" + "PRINT"; msg }? ]]></param> </action>
Releases the pairing of the specified device.
Note: If you want to release all external devices, use the release_all_bindings action instead.
Identifier: release_binding
<action id="release_device" type="release_binding"> <param name="device_id">#{external_device_id}</param> </action>
Enables you to configure the behaviour of the xBand to your devices (e.g., vibrations and beeping sounds).
Identifier: send_external_device_configuration
Note: Make sure that there are no spaces in the list and values for all keys are given.
NONE
, SHORT
, POSITIVE
, NEGATIVE
, CONNECT
, DISCONNECT
NONE
, SHORT
, POSITIVE
, NEGATIVE
, CONNECT
, DISCONNECT
NONE
, SHORT
, POSITIVE
, NEGATIVE
, CONNECT
, DISCONNECT
NONE
, SHORT
, LONG
, DOUBLE
NONE
, SHORT
, LONG
, DOUBLE
NONE
, SHORT
, LONG
, DOUBLE
<action id="set_external_device_config_beep_on_scan" type="send_external_device_configuration"> <list name="configuration" listType="NAMED"> <param name="d">SHORT,NONE,NONE,NONE,NONE,NONE</param> </list> </action>
Sends a command to the external device.
Identifier: send_external_device_commands
Note: If you fail to specify the device to which you want to send your command, the command will be sent to all connected devices.
<action id="send_power_config_command" type="send_external_device_commands"> <list name="commands" listType="NAMED"> <param name="p">#{code}</param> </list> </action> <action id="send_external_device_beep" type="send_external_device_commands"> <list name="commands" listType="NAMED"> <param name="b">1</param> </list> </action> <action id="send_external_device_correct_pick" type="send_external_device_commands"> <list name="commands" listType="NAMED"> <param name="n">1</param> </list> </action> <action id="send_external_device_wrong_pick" type="send_external_device_commands"> <list name="commands" listType="NAMED"> <param name="n">2</param> </list> </action> <action id="send_external_device_vibrate" type="send_external_device_commands"> <list name="commands" listType="NAMED"> <param name="v">1</param> </list> </action> <action id="reset_external_device_tag_buffer" type="send_external_device_commands"> <list name="commands" listType="NAMED"> <param name="x">0</param> </list> </action>
Releases the bindings to all of the connected devices.
Identifier: release_all_bindings
<action id="release_devices" type="release_all_bindings"/>