New functionality added:
Get online clients list
python
def get_online_list(self) -> list:
"""
Return a list of online clients.
Returns:
list: [{"deviceId": "aa:bb:cc:dd:ee:ff", "ip": "192.168.1.100", "devName": "ClientName", "line": "2", "uploadSpeed": "0",
"downloadSpeed": "0", "linkType": "unknown", "black": 0, "isGuestClient": "false" }, ...]}
"""
Filter online clients list by 'devName' value
python
def filter_onlinelist_by_devname(self, str_in_dev_name: str) -> list:
"""
Return a list of online clients filtered by 'devname' value if contains the str_in_dev_name param.
Returns:
list: [{"deviceId": "aa:bb:cc:dd:ee:ff", "ip": "192.168.1.100", "devName": "ClientName", "line": "2", "uploadSpeed": "0",
"downloadSpeed": "0", "linkType": "unknown", "black": 0, "isGuestClient": "false" }, ...]}
"""
Reboot the router
python
def reboot(self):
"""
Reboot the router
"""