Empareja un dispositivo externo.
Identificador: 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>
Dado que la acción no tiene salida "SUCCESS", debe validar la conexión. Esto se puede hacer como se muestra en este ejemplo:
<rule id="device_connected">
<expression> <![ CDATA[#{extdevices. CONNECTION_STATUS} == #{const:extdevices. CONNECTED}]]> </expression>
<actions>
<action ref="my_action" />
</actions>
</rule>
Intenta conectar y enviar contenido de impresión a una impresora Zebra.
Identificador: 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" +
"TONO 99\r\n" +
"VELOCIDAD 98\r\n" +
"T 4 0 0 80 PRUEBA 1234\r\n" +
"FORMA\r\n" +
"IMPRIMIR";
msg}? ]]></param></acción>
<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" +
"TONO 99\r\n" +
"VELOCIDAD 98\r\n" +
"T 4 0 0 80 PRUEBA 1234\r\n" +
"FORMA\r\n" +
"IMPRIMIR";
msg
}? ]]></param>
</acción>
Libera el emparejamiento del dispositivo especificado.
Nota: Si desea liberar todos los dispositivos externos, utilice la acción release_all_bindings en su lugar.
Identificador: release_binding
<action id="release_device" type="release_binding">
<param name="device_id">#{external_device_id}</param>
</action>
Le permite configurar el comportamiento de la xBand en sus dispositivos (por ejemplo, vibraciones y pitidos).
Identificador: send_external_device_configuration
Nota: Asegúrese de que no haya espacios en la lista y de que se proporcionen valores para todas las claves.
NONE, SHORT, POSITIVE, NEGATIVE, CONNECT, , DISCONNECTNONE, SHORT, POSITIVE, NEGATIVE, CONNECT, , DISCONNECTNONE, SHORT, POSITIVE, NEGATIVE, CONNECT, , DISCONNECT
NONE, SHORT, , LONGDOUBLENONE, SHORT, , LONGDOUBLE
NONE, SHORT, , LONGDOUBLE<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>
Envía un comando al dispositivo externo.
Identificador: send_external_device_commands
Nota: Si no especifica el dispositivo al que desea enviar el comando, el comando se enviará a todos los dispositivos conectados.
<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>
Libera los enlaces a todos los dispositivos conectados.
Identificador: release_all_bindings
<action id="release_devices" type="release_all_bindings"/>