Skip to content

Frame ID value with send_data_async #240

@goowza

Description

@goowza

Hello,

I have a question regarding the send_data_async method. This method is supposed to be used to send some data without waiting for a response packet from the receiver.

However the value of the frame ID in the packet built using the send_data_async method is computed like this in devices.py :

if self.get_protocol() == XBeeProtocol.RAW_802_15_4:
    packet = TX64Packet(self.get_next_frame_id(), x64addr,
                        transmit_options, rf_data=data)
else:
    packet = TransmitPacket(self.get_next_frame_id(), x64addr,
                            XBee16BitAddress.UNKNOWN_ADDRESS, 0,
                            transmit_options, rf_data=data)

Maybe I got it wrong, but it doesn't seem like self.get_next_frame_id() is ever equal to 0. That means the receiver will still send a response packet, but the emitter will ignore it ? Why ?

Hope someone can enlighten me on this,
Best regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions