Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By nsmt
#54737
I'm struggling to get this working, I seem to always get a failure using the example code
[TWEET] tweet : esp-01 + direct tweet / test 04
[DEBUG] do_http_text_post httpCode : -1
[TWEET] tweet : failed


It might be the ssl verify part that is causing the problem.
I commented out a few lines in ESP8266HTTPClient.cpp and now it's working fine.

in bool HTTPClient::connect(void)
Code: Select all/*
    if (!_transportTraits->verify(*_tcp, _host.c_str())) {
        DEBUG_HTTPCLIENT("[HTTP-Client] transport level verify failed\n");
        _tcp->stop();
        return false;
    }
*/