Caerbannog/esphttpclient

Error -114

sato96 opened this issue · 0 comments

I'm trying to send my dht11 data from my esp8266 to my thingspeak channel but when i try to send data via https i get error -114. I don't know what to to do.
Here is my code:
url = "https://api.thingspeak.com/update.json?api_key=XXXXXXXXXXXXXXXXXXX&field1=" .. temp print(url) http.get(url, nil, function(code, data) if (code < 0) then print("HTTP request failed") else print(code, data) end end)

And here there's the modules in my firmware:
crypto,dht,file,gpio,http,mdns,mqtt,net,node,pwm,sjson,spi,tmr,tsl2561,uart,websocket,wifi,tls

I am using lua, of course. Anyway here's my error:
> HTTP client: Disconnected with error: -114 HTTP client: Connection timeout HTTP request failed

Can you help me?