Skip to content

Add forget_client (using forget_sta api)#49

Open
yuphing-ong wants to merge 5 commits into
finish06:masterfrom
yuphing-ong:master
Open

Add forget_client (using forget_sta api)#49
yuphing-ong wants to merge 5 commits into
finish06:masterfrom
yuphing-ong:master

Conversation

@yuphing-ong

Copy link
Copy Markdown

Nothing new, just cleaning up the lint errors from pull request #43 that stops it from being accepted.

@yuphing-ong yuphing-ong reopened this Oct 22, 2019
@finish06

Copy link
Copy Markdown
Owner

@yuphing-ong Can the block_client and unblock_client also use the new _macs_cmd function?

@yuphing-ong

yuphing-ong commented Oct 24, 2019

Copy link
Copy Markdown
Author

@yuphing-ong Can the block_client and unblock_client also use the new _macs_cmd function?

Unfortunately no. FYI _macs_cmd is just sending param 'macs':MACS, where MACS must be a list of macs (one or more). I'm not implementing any iteration, it's just what the Unifi API is expecting.

I'm using https://github.com/Art-of-WiFi/UniFi-API-client/blob/master/src/Client.php as a reference, so block_sta and unblock_sta only take cmd param 'mac' and a single mac, whereas forget_sta takes the param 'macs': '[...]'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants