We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7735f37 commit ae64f5bCopy full SHA for ae64f5b
libraries/ESP8266HTTPClient/examples/BasicHttpsClient/BasicHttpsClient.ino
@@ -63,12 +63,11 @@ void loop() {
63
https.setTimeout(4000); // or: client->setTimeout(4000);
64
client->setHandshakeTimeout(10000);
65
66
-#if 1
+ // Try to reduce RAM footprint when SSL server allows it
67
constexpr int sslbufsize = 1024;
68
bool mfln = client->probeMaxFragmentLength(jigsaw_host, jigsaw_port, sslbufsize);
69
Serial.printf("Can reduce SSL footprint to %d bytes in RAM: %s\n", sslbufsize, mfln ? "yes" : "no");
70
if (mfln) { client->setBufferSizes(sslbufsize, sslbufsize); }
71
-#endif
72
73
Serial.print("[HTTPS] begin...\n");
74
if (https.begin(*client, jigsaw_host, jigsaw_port)) { // HTTPS
0 commit comments