向外部设备发送一个命令。
identifier:send_external_device_commands
构成要素
device_id:接收命令的外部设备的ID。
命令。发送给外部设备的命令列表。
注意:如果你没有指定你要发送命令的设备,该命令将被发送到所有连接的设备。
支持的命令名称
xBand支持这些命令。
P:设置外部设备的电源。
可能的值。[ 0, 20 ]
答:用于许可。通知波段用户是否有权限
R:改变波段的范围(目前不使用,因为功率直接控制这个)。
D:定义一般乐队行为的配置的关键
V:让xBand设备振动。
B:让xBand设备发出提示音
N:xBand的通知,例如正确的选取。
X:重置标签缓冲区,以便再次接受相同的代码。
实例
<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>