Skip to content

Commit ae64f5b

Browse files
committed
add an https client example comment for MFLN
1 parent 7735f37 commit ae64f5b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libraries/ESP8266HTTPClient/examples/BasicHttpsClient/BasicHttpsClient.ino

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,11 @@ void loop() {
6363
https.setTimeout(4000); // or: client->setTimeout(4000);
6464
client->setHandshakeTimeout(10000);
6565

66-
#if 1
66+
// Try to reduce RAM footprint when SSL server allows it
6767
constexpr int sslbufsize = 1024;
6868
bool mfln = client->probeMaxFragmentLength(jigsaw_host, jigsaw_port, sslbufsize);
6969
Serial.printf("Can reduce SSL footprint to %d bytes in RAM: %s\n", sslbufsize, mfln ? "yes" : "no");
7070
if (mfln) { client->setBufferSizes(sslbufsize, sslbufsize); }
71-
#endif
7271

7372
Serial.print("[HTTPS] begin...\n");
7473
if (https.begin(*client, jigsaw_host, jigsaw_port)) { // HTTPS

0 commit comments

Comments
 (0)