-->
Page 2 of 3

Re: HTTPClient Library vs Manual Code Response Time?

PostPosted: Thu Feb 15, 2018 10:04 pm
by androidfanboy
In the .ccp file it says this regarding the "setNoDelay()":

Code: Select all#ifdef ESP8266
    _tcp->setNoDelay(true);
#endif
    return connected();
}


That seems like it sets it to true by default for ESP8266. I guess I need to also use that for my "manual" WiFiClient library?

Re: HTTPClient Library vs Manual Code Response Time?

PostPosted: Thu Feb 15, 2018 10:19 pm
by androidfanboy
Unfortunately adding "client.setNoDelay(true);" didn't solve my problem. Still the same delay. I'm putting the line right after client.connect().

Re: HTTPClient Library vs Manual Code Response Time?

PostPosted: Fri Feb 16, 2018 10:24 am
by tele_player
I’m usually against reinventing the wheel . Do you have a reason for not wanting to use the HTTP client lib?

Re: HTTPClient Library vs Manual Code Response Time?

PostPosted: Fri Feb 16, 2018 10:47 am
by androidfanboy
The main reason is to use HTTPS without having to supply a fingerprint. And weirdly enough for some servers the HTTPClient library doesn't work with the fingerprint. That's why I use the WiFiClientSecure library, but doing it this way "manually" somehow is slower.