本站改版新增arduino频道

Micropython
Arduino

micropython esp32开发板建立ap热点


import network


def AP_wifi():

    wifi = network.WLAN(network.AP_IF)

    wifi.active(True)

    wifi.ifconfig(("192.168.6.1", '255.255.255.0', "192.168.6.1", "192.168.6.1"))

    wifi.config(essid="SERVER_SSID", authmode=network.AUTH_OPEN)

    print('Network config:', wifi.ifconfig())



推荐分享
图文皆来源于网络,内容仅做公益性分享,版权归原作者所有,如有侵权请告知删除!
 

Copyright © 2014 ESP56.com All Rights Reserved
晋ICP备14006235号-22 晋公网安备14108102001165号

执行时间: 0.0096979141235352 seconds