I've created an Image over http://nodemcu-build.com with the following modules:
bit, dht, file, gpio, http, i2c, net, node, tmr, u8g, uart, wifi, tls
The NodeMCU is connected to WiFi. But when I execute the following Code:
print(wifi.sta.getip())
http.get("http://nodemcu-build.com", nil, function(code, data)
if (code < 0) then
print("HTTP request failed")
else
print(code, data)
end
end)
I get the following Response:
dofile('http.lua')
192.168.1.128 255.255.255.0 192.168.1.11
> HTTP client: DNS failed for nodemcu-build.com
HTTP request failed
What's wrong?
Thank you
Markus