I am new to Omnetpp, and I am trying to send messages from one node to another wirelessly. Basically, I would like to do something as in the tictoc example of Omnetpp (https://docs.omnetpp.org/tutorials/tictoc/) but then wirelessly. I have installed INET already, and I have seen the wireless example, which uses the UdpBasicAPP. However, I do not know how to change the data of the message send while using the UdPBasicAPP. In my case, what I am sending (i.e. the data) is very important because it is part of a bigger project. Eventually, the idea is to use the 802.11p standard (which exists in VEINS) and multiple nodes, but I thought this was a good place to start.
I hope someone can help me out.
Kind regards
opMode
parameter on the network interface.UdpBasicApp
and modify it according to your needs. Check the sendPacket()
function which creates an ApplicationPacket
. ApplicationPacket
contains only a single sequence number, but you can create your own application level data structure and use that for sending.