主要内容

pullTransmittedPacket

Class: wnet.Node
Namespace: wnet

Read packets scheduled for transmission by node

Since R2026a

Description

packet = pullTransmittedPacket(wirelessNode) reads packets scheduled for transmission at the current simulation time by the specified node. You can override this method to return the packets scheduled for transmission by the node when the wirelessNetworkSimulator object invokes the node.

Note

Only the wirelessNetworkSimulator object calls the pullTransmittedPacket method.

Input Arguments

expand all

Wireless node, specified as an object of a subclass of wnet.Node.

Output Arguments

expand all

Packets scheduled for transmission by the node, returned as [], a structure or a vector of structures. For more information about the structure of a wireless packet, see the wirelessPacket function. If the node does not have packets scheduled for transmission, the function returns [].

Version History

Introduced in R2026a