wifi.py 文件源码

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

项目:thingflow-python 作者: mpi-sws-rse 项目源码 文件源码
def wifi_disconnect():
    # Disconnect from the current network. You may have to
    # do this explicitly if you switch networks, as the params are stored
    # in non-volatile memory.
    wlan = network.WLAN(network.STA_IF)
    if wlan.isconnected():
        print("Disconnecting...")
        wlan.disconnect()
    else:
        print("Wifi not connected.")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号