then right-Click on inet project in property > in omnet++>in NED Resource Folder > Check box your myFolderProject.
package inet.myFolderProject;
import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
import inet.node.inet.INode;
import inet.physicallayer.contract.packetlevel.IRadioMedium;
// - create a network and specify the size to 500x500
// - drop an IPv4NetworkConfigurator and rename it to "configurator"
// - drop an IdealRadioMedium module and rename to "radioMedium"
// - make vector WirelessHost Submodule
network Wireless
{
@display("bgb=500,500");
@figure[thruputInstrument](type=gauge; pos=370,90; size=120,120; maxValue=2500; tickSize=500; colorStrip=green 0.75 yellow 0.9 red;label=Number of packets received; moduleName=hostB.udpApp[0]; signalName=rcvdPk);
string hostType = default("WirelessHost");
string radioMediumType = default("IdealRadioMedium");
int hostNumber=default(2);
submodules:
configurator: IPv4NetworkConfigurator {
config = xml("<config><interface hosts='*' address='192.168.1.x' netmask='255.255.255.0'/></config>");
@display("p=149,29");
}
radioMedium: <radioMediumType> like IRadioMedium {
@display("p=309,24");
}
host[hostNumber]: <hostType> like INode {
@display("p=50,250");
}
}
// in omnetpp.ini
*.hostType = "WirelessHost"
*.hostNumber = 3
*.host[0].numUdpApps = 1
*.host[0].udpApp[0].typename = "UDPBasicApp"
*.host[0].udpApp[0].destAddresses = "host[1]"
*.host[0].udpApp[0].destPort = 5000
*.host[0].udpApp[0].messageLength = 2000B
*.host[0].udpApp[0].sendInterval = exponential(10ms)
*.host[1].numUdpApps = 1
*.host[1].udpApp[0].typename = "UDPSink"
*.host[1].udpApp[0].localPort = 5000
#=================================== wlan[NIC] & RadioMediumType Config
#Ieee80211Mac [NIC]
*.host[*].wlan[*].typename = "Ieee80211Nic"
*.host[*].wlan[*].mgmtType = "Ieee80211MgmtAdhoc"
**.wlan[*].opMode = "b"
#Radio Type Ideal
*.radioMediumType = "IdealRadioMedium"
*.host[*].wlan[*].radioType = "IdealRadio"
*.host[*].wlan[*].radio.transmitter.bitrate = 2Mbps
*.host[*].wlan[*].radio.transmitter.headerBitLength = 100b
*.host[*].wlan[*].radio.transmitter.maxCommunicationRange = 250m
//--------------------------------------------------------------
I hope this work and help for you.