January 2019
Beginner to intermediate
776 pages
19h 58m
English
There are many vendors that have backend APIs that can be controlled or called using Python to perform certain wireless tasks. A commonly used vendor in wireless is Netgear. Python has a library pynetgear that helps us achieve some of the automation to control our locally connected devices.
Let's see an example of fetching the current network devices connected to the local wireless Netgear router in our network:
>>> from pynetgear import Netgear, Device>>> netgear = Netgear("myrouterpassword", "192.168.100.1","admin","80")>>> for i in netgear.get_attached_devices(): print (i)
The Netgear method accepts four arguments in the following order (routerpassword, routerip, routerusername, and routerport). As we see in the current ...
Read now
Unlock full access