address to 0x20 or 0x27 for a 16 chars and 2 line display LiquidCrystal_I2C lcd(0x20, 16, 2); void setup() { lcd.init(); // initialize the lcd lcd.backlight(); lcd.print("ESP8266"); lcd.setCursor(0, 1); lcd.print("Arduino x Wi-Fi!”); }
local buf = ""; local _, _, method, path, vars = string.find(request, "([A-Z]+) (.+)\?(.+) HTTP"); if(method == nil)then _, _, method, path = string.find(request, "([A-Z]+) (.+) HTTP"); end local _GET = {} if (vars ~= nil)then for k, v in string.gmatch(vars, "(%w+)=(%w+)&*") do _GET[k] = v end end buf = buf.."<h1>ESP8266 Web Server</h1>"; client:send(buf); client:close(); collectgarbage(); end) end)
local buf = ""; local _, _, method, path, vars = string.find(request, "([A-Z]+) (.+)?(.+) HTTP"); if(method == nil)then _, _, method, path = string.find(request, "([A-Z]+) (.+) HTTP"); end local _GET = {} if (vars ~= nil)then for k, v in string.gmatch(vars, "(%w+)=(%w+)&*") do _GET[k] = v end end buf = buf.."<h1>ESP8266 Web Server</h1>"; client:send(buf); client:close(); collectgarbage(); end) end)