Closed bill-cli closed 4 months ago
Which value are you passing as the wlangroup_id?
The client documentation says to pass one retrieved from the “list_wlan_groups”, so i pass the “_id” parameter from that command.
On Wed, May 25, 2022 at 4:39 PM malle-pietje @.***> wrote:
Which value are passing as the wlangroup_id?
— Reply to this email directly, view it on GitHub https://github.com/Art-of-WiFi/UniFi-API-client/issues/159#issuecomment-1137826094, or unsubscribe https://github.com/notifications/unsubscribe-auth/AVYZVUIFZA5N5KWWMVG3DJLVL2FYDANCNFSM5W56JRFQ . You are receiving this because you authored the thread.Message ID: @.***>
-- Bill Meaney, CTS-D, CTS-I Network Engineer/Developer CommLink Integration Corp. 5 Strathmore Road, Natick, MA 01760 Office 617-982-0740 Fax 508-650-5124
Ok, understood, just checking. I don’t have the time at the moment but need to check if anything changed with this route for the latest controller versions. Maybe that parameter is no longer needed or renamed.
Well, starting from version 6 of the UniFi controller, there is no longer such parameter as wlangroup_id.
If anyone is willing to submit a pull request or share a code change here I will test and incorporate it in the mainstream package.
I watched the browser network console when adding a new WiFi network on version 7.2.92 of the controller application and it looks like the API endpoint may have changed as well. The POST is going to /rest/wlanconf
instead of /add/wlanconf
in addition to wlangroup_id not being included. I'll try to test the changes and make a pull request this week.
Removing the wlangroup_id and changing the API endpoint worked. Pull request in #169
Can anyone please give complete working example of the Latest function and code without wlan group id
Attempting to create a new WLAN according to documentation in client.php. See following code:
Debug is enabled. This function results in the output "false", debug output is also "false".
We tailed the logs in the docker container running the controller (7.1.65) and the server.log file generates this message:
<webapi-83> WARN sanitize - Invalid key exists in WlanConf payload, key=wlangroup_id