dofile("dnstest.lua")
lua: dnstest.lua:14: '<eof>' expected near 'end'
Lets get the party started and +1
[url=https://www.banggood.com/custlink/KvGGhGF4wG[/url]
I like ESP8266 and ESP8285 and ESP32
Explore... Chat... Share...
dofile("dnstest.lua")
lua: dnstest.lua:14: '<eof>' expected near 'end'
myhost="api.whatismyip.com"
> mypage=""
> myip=""
> sk=net.createConnection(net.TCP, 0)
> sk:dns(myhost,function(conn,ip)
>> myip=ip
>> sk=net.createConnection(net.TCP, 0)
>> sk:on("receive", function(sck, c) print(c) end )
>> sk:connect(80,myip)
>> sk:send("GET / " .. mypage .." HTTP/1.1\r\nHost: " .. myhost .."\r\n\r\n")
>> end)
> HTTP/1.1 403 Forbidden
Server: nginx
Date: Sun, 30 Nov 2014 18:40:05 GMT
Content-Type: text/html; charset=iso-8859-1
Content-Length: 10
Connection: keep-alive
Vary: Accept-Encoding
Forbidden.
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]