1.烧录固件
2.esp返回网页
连接8266的wifi,浏览器输入192.168.4.1即可
import network
import socket
import time
import wifi
html = """<!DOCTYPE html>
<html>
<head> <title>ESP8266 test page</title> </head>
<body> <h1>Successful!</h1>
</body>
</html>
"""
def wifi_config(wifi_name,wifi_password):
ap = network.WLAN(network.AP_IF) # create access-point interface
ap.config(essid=wifi_name