Skip to content

Commit

Permalink
add Option to get Clients for a specify AP
Browse files Browse the repository at this point in the history
  • Loading branch information
T0biii committed May 19, 2024
1 parent c4c2dda commit 2a73912
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions omada/omada.py
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,9 @@ def getSites(self):
def getSiteDevices(self, site=None):
return self.__get(f"/sites/{self.__findKey(site)}/devices")

##
## Get the Details of an AP
##

##
## Get the Details of an AP
##
def getSiteAP(self, site=None, mac=None):
return self.__get(f"/sites/{self.__findKey(site)}/eaps/{mac}")

Expand All @@ -474,6 +473,14 @@ def getSiteClients(self, site=None):
f"/sites/{self.__findKey(site)}/clients", params={"filters.active": "true"}
)

##
## Returns the list of active clients for given site and AP.
##
def getSiteClientsAP(self, site=None, apmac=None):
return self.__geterator(
f"/sites/{self.__findKey(site)}/clients", params={"filters.active": "true", "filters.apMac": apmac}
)

##
## Returns the list of alerts for given site.
##
Expand Down

0 comments on commit 2a73912

Please sign in to comment.