Program XBee Industrial Gateway using
Python
XBee Industrial Gateway Python application and Remote
Manager
Digi XBee Industrial Gateway
78
n
Reply
<sci_request version="1.0">
<send_message>
<device id="00000000-00000000-00409DFF-FF5C4C66"/>
<rci_reply version="1.1">
<do_command target="xbgw">
<responses command="set_digital_output">
<response/>
</responses>
</do_command>>
</rci_reply>
</device>
</send_message>
</sci_reply>
If the SCI request fails, you will receive an SCI reply containing the
set_digital_output
command response element that includes an
error
element indicating the cause of the error.
For example:
<sci_reply version="1.0">
<send_message>
<device id="00000000-00000000-00409DFF-FF5C4C66">
<rci_reply version="1.1">
<do_command target="xbgw">
<responses command="set_digital_output">
<response>
<error id="invalidattr">
<desc>Attribute value is incorrect</desc>
<hint>DIO9 cannot be configured for
digital.</hint>
</error>
</response>
</responses>
</do_command>
</rci_reply>
</device>
</send_message>
</sci_reply>
The
error
element contains an
id
attribute indicating the error identifier. For more information
regarding the possible XBee Industrial Gateway Python application error identifiers, see
Industrial Gateway Python application command errors
.