Art-of-WiFi / UniFi-API-browser

Tool to browse data exposed by Ubiquiti's UniFi Controller API
MIT License
1.1k stars 150 forks source link

Added enable_wlan function #21

Closed E-Raw closed 7 years ago

E-Raw commented 7 years ago

Hi there!

I've added enable_wlan function which enable or disable a specific wlan according its ID. It has been tested with Unifi Controller 5.3.8 with regular and guest wlans.

malle-pietje commented 7 years ago

Thanks for that! I'll have a good look, after a first glance I think I would prefer to change the default action from enable to disable to bring it in-line with the disable_ap method/function. My line of thinking there is that enabled would be the default/desired state of an AP or a WLAN. What do you think?

E-Raw commented 7 years ago

I adapted it according your remark and tested it again successfully. I'm not a GIT pro as you noticed, looks like I have two successive commits with one empty ^^