参考文献来源
链接:https://www.cnblogs.com/yangfengwu/p/7533302.html
链接:https://blog.csdn.net/loser_11/article/details/78552815
实现功能:同一局域网中8266向电脑发送数据。
esp8266写入lua程序如下
wifi.setmode(wifi.STATIONAP)
stationcfg={
ssid="xxx"; --无线网名称,有密码需加pwd
auto=true;
}
wifi.sta.config(stationcfg)
flag=0;
wifi.eventmon.register(wifi.eventmon.STA_GOT_IP, function(T)
print(