小编ahm*_*d14的帖子

只有一个tcp服务器允许带有Lua的ESP8266

我正在研究ESP8266,我正在尝试用Lua编程.我尝试创建TCP服务器,但是当我在下面编写示例代码时,我将错误消息名称"只允许一个tcp服务器".我创建了一个服务器而且我无法关闭.

我该如何解决?

print("ESP8266 mode is: " .. wifi.getmode());

cfg = {};
-- Set the SSID of the module in AP mode and access password
cfg.ssid = "SSID";
cfg.pwd = "password";
if ssid and password then
    print("ESP8266 SSID is: " .. cfg.ssid .. " and PASSWORD is: " ..
            cfg.password)
end;
-- Now you should see an SSID wireless router named ESP_STATION when you scan for available WIFI networks
-- Lets connect to the module from a computer of mobile device. …
Run Code Online (Sandbox Code Playgroud)

lua tcpserver esp8266

2
推荐指数
1
解决办法
4402
查看次数

标签 统计

esp8266 ×1

lua ×1

tcpserver ×1