PRADEEP NAZARETH
PRADEEP NAZARETH

Reputation: 167

Multicasting of packet in UnetStack

I want to implement an opportunistic routing protocol in UnetStack to transmit a packet to more than one neighbor node. How can I proceed with that?

Upvotes: 1

Views: 79

Answers (1)

Mandar Chitre
Mandar Chitre

Reputation: 2280

You can transmit to PHY frame to the BROADCAST address (0). The default address is 0, so not specifying a to address is equivalent.

Example:

phy << new TxFrameReq(data: [1,2,3])

will transmit a frame with bytes [1,2,3] to all neighbors.

Upvotes: 2

Related Questions