Just to let you better understand the problem I have:
while considering the following code
for (uint n=0 ; n < numNodes ; n++) {
//distance = distance +10;
Ptr<ConstantPositionMobilityModel> mob = ap.Get(n)->GetObject<ConstantPositionMobilityModel>();
mob->SetPosition(Vector(distance, distance, 0));
mob = wifiClient.Get(n)->GetObject<ConstantPositionMobilityModel>();
mob->SetPosition(Vector(distance, distance, 0));
}
if I uncomment the line 'distance = distance +10;' nodes stop receiving beacons. Otherwise it works.
Thank you for your help in advance.
Regards,
Giuliana