Closed sayaz closed 10 months ago
Hey @sayaz,
When using the send_data
method, the library implicitly checks for the TransmitStatus
packet after sending the data. If it's not received or the status is not success, the method will throw a TimeoutException
or a TransmitException
respectively. In contrast, the send_data_async
method does not check for the TransmitStatus
packet. See https://xbplib.readthedocs.io/en/latest/user_doc/communicating_with_xbee_devices.html#synchronous-operation.
If you still want to process the content of the TransmitStatus
packet, you should register a packet received callback using the add_packet_received_callback
method, see https://xbplib.readthedocs.io/en/latest/api/digi.xbee.devices.html#digi.xbee.devices.XBeeDevice.add_packet_received_callback.
Hello,
Using Digi Xbee3 mesh devices (on firmware 802.15.4, 200D). Once as Coordinator (transmitter) other as End device (receiver) (API mode w/o escapes). The transmit and receive of data is working fine. I want to extract the "Transmit Status" of the frame from the transmitter side basically for acknowledgement purpose. Unfortunately I am unable to see/recover the "Transmit Status". The only thing that I can get is the payload part. On the other hand if I use the debugging option, I am able to see, the "Transmit option" is being received (in HEX format, which I can interpret from XCTU tool). How can I extract this information in Python ? Can you please help ? Code as below:
Coordinator code:
End device code