could someone give a clue in this or how to use tagging in main script.
uint16_t port = i+4000;
UdpServerHelper server (port);
ApplicationContainer apps = server.Install (wifiStaNodes.Get (i+6));
apps.Start (Seconds (2.0));
apps.Stop (Seconds (10.0));
//
// Create one UdpTraceClient application to send UDP datagrams from node zero to
// node one.
//
uint32_t MaxPacketSize = 1472; // Back off 20 (IP) + 8 (UDP) bytes from MTU
UdpTraceClientHelper client (IPSTA.GetAddress (i+6), port,"trace.txt");
client.SetAttribute ("MaxPacketSize", UintegerValue (MaxPacketSize));
apps = client.Install (wifiApNode.Get (0));
apps.Start (Seconds (2.0));
apps.Stop (Seconds (10.0));
without tagging everything works fine.