intrig-unicamp / mininet-wifi

Emulator for Software-Defined Wireless Networks
https://mn-wifi.readthedocs.io/
Other
431 stars 239 forks source link

How to print all mobile stations, their link information and their location coordinates in the access point transmission region using Python ? #519

Open 14vv1A0516 opened 6 months ago

14vv1A0516 commented 6 months ago

Hi Sir,

I have a scenario/topology with mobile stations and APs. The mobile stations move randomly. I have been trying to get all the stations' information as and when they enter an AP region periodically in Python code.

After creating the topology, I tried to execute the below lines.

for ap in net.aps: print(f"\nAccess Point: {ap.name}") associated_stations = ap.associatedStations print ("The associated_stations for ", ap, " are", associated_stations)

But this throws following error.

image

How do I achieve this ? Please help.