martin-ger / esp_mqtt

MQTT Broker/Bridge on the ESP8266
MIT License
297 stars 70 forks source link

Request to add https_get #54

Open sjfaustino opened 4 years ago

sjfaustino commented 4 years ago

I'm uploading values (battery voltage) to thingspeak and it updates the values on thingspeak but since I'm using http_get with a https address, I get errors returned wich isn't a big deal since it works anyway.

client handshake start. client handshake ok! client's data invalid protocol Error: SSL error 3

The issue is I'm also trying to send a message to Telegram whenever certain conditions are met and that doesn't work and returns an error code.

client handshake start. client handshake failed Error: SSL error 70 return code: -1

With my previous tests with a telegram bot library on arduino language, when that happened, I had to add setclient.Insecure() to make it work.

Is it possible to add a https_get so this can work?

Script if interested in checking it: https://pastebin.com/XgzkLGJU