UnifiAPI.py 文件源码

python
阅读 36 收藏 0 点赞 0 评论 0

项目:pythonUnifiAPI 作者: delian 项目源码 文件源码
def add_hotspot2(self, name, network_access_internet=True, network_type=2, venue_group=2, venue_type=0):
        """
        Add HotSpot 2.0, simple settings
        :param name:
        :param network_access_internet:
        :param network_type:
        :param venue_group:
        :param venue_type:
        :return:
        """
        content = self.sitecmdjson('/rest/hotspot2conf', {
            "name": name,
            "network_access_internet": network_access_internet,
            "network_type": network_type,
            "venue_group": venue_group,
            "venue_type": venue_type
        })
        return self.response(content, inspect.stack()[0].function, 'Add Hotspot 2.0')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号