hi
i am also trying to use OnOffApplication with on
time set as constant random variable and off time set as exponential
random variable
and applied all the necessary requirement for OnOff application but still its not working and showing error.
ApplicationContainer cbrApps;
uint16_t cbrPort = 12345;
OnOffHelper onOffHelper1 ("ns3::UdpSocketFactory", InetSocketAddress (Ipv4Address ("10.1.1.50"), cbrPort));
onOffHelper1.SetAttribute ("PacketSize", UintegerValue (1024));
onOffHelper1.SetAttribute ("OnTime", StringValue ("ns3::ConstantRandomVariable[Constant=1.0]"));
onOffHelper1.SetAttribute ("OffTime", DoubleValue ("ns3::ExponentialRandomVariable[mean=1|Bound=0]"));
kindly help
thankyou