The use of the ESP8266 in the world of IoT

User avatar
By Finnduino
#8101 I tried this but can not get working:

Code: Select allprint("Pushing...")
conn=net.createConnection(net.TCP, 0)
conn:on("receive", function(conn, payload) print(payload) end)
conn:connect(80,'213.186.33.19')
print(".. and .....")
conn:send("GET /pushingbox?devid=v*****************&A=1 HTTP/1.1")
conn:send("\r\n")
conn:send("Host: api.pushingbox.com\r\n")
conn:send("User-Agent: esp")
conn:send("\r\n")
conn:send("\r\n")
conn:on("disconnection", function(conn)
     print("Got disconnection...")
     end)
     


With Firefox-browser it works fine. Any suggestions what I could try next?