net.createConnect, SSL not working.
Posted: Mon Mar 30, 2015 11:58 pm
I tried for weeks trying to get the ESP8266 to log on to api.pushbullet.com, on a SSL connection on port 443.
Tired it with native SDK, freertos and it is not working.
On nodemcu i tried.
and the connection just hangs there.
on chrome .
Can I conclude that currently there is no way to log on to a https server?
it will be useful if it does, as most REST clients uses SSL now.
Any help or advise appreciated.
Thank you.
Tired it with native SDK, freertos and it is not working.
On nodemcu i tried.
Code: Select all
-- A simple http client
conn=net.createConnection(net.TCP, 1)
conn:on("receive", function(conn, payload) print(payload) end )
conn:connect(443,"api.pushbullet.com")
conn:send("GET / HTTP/1.1\r\nHost: api.pushbullet.com\r\n"
.."Connection: keep-alive\r\nAccept: */*\r\n\r\n")
and the connection just hangs there.
on chrome .
Code: Select all
{"cat":"(=^.^=)","happy_to_see_you":true,"message":"Welcome to the Pushbullet API!"}
Can I conclude that currently there is no way to log on to a https server?
it will be useful if it does, as most REST clients uses SSL now.
Any help or advise appreciated.
Thank you.