main.py 文件源码

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

项目:thunderstorm 作者: rnovacek 项目源码 文件源码
def connect():
    ap_if = network.WLAN(network.AP_IF)
    ap_if.active(True)

    if config.USE_AP:
        sta_if = network.WLAN(network.STA_IF)
        sta_if.active(True)

        print('connecting to network...')
        start_time = time.time()
        sta_if.connect(config.SSID, config.PASSWORD)
        while not sta_if.isconnected() and time.time() - start_time < 3.0:
            pass
        print('network config:', sta_if.ifconfig())
    print('AP network config:', ap_if.ifconfig())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号