-
Notifications
You must be signed in to change notification settings - Fork 0
ESP8266
Pavel Serikov edited this page Jan 3, 2018
·
1 revision
http://ардуино-ростов.рф/product/nodemcu-esp8266/ http://ардуино-ростов.рф/product/wifi-%d0%bc%d0%be%d0%b4%d1%83%d0%bb%d1%8c-esp8266/ https://www.hackster.io/nikil511/esp32-arduino-ide-hello-world-df2565
Hello World программы
wifi.setmode(wifi.STATION)
wifi.sta.config("myssid","mypassword")
wifi.sta.status()
wifi.sta.getip()
srv=net.createServer(net.TCP)
srv:listen(80, function(conn)
conn:on("receive", function(conn,payload)
print(payload)
time = tmr.now();
conn:send("<h1> Hello, MySKU.</h1><b>"..time.."</b>")
end)
conn:on("sent", function(conn) conn:close() end)
end)