-->
Page 1 of 1

FS.h does not work with ESP8266WebClientSecure.h - memory?

PostPosted: Wed Aug 16, 2017 12:45 pm
by jmseight
Hi,

I am new to this forum.
When I use WiFiClient.h to send commands to IFTTT (http only), everything works well. But when I change to WiFiClientSecure.h (https), the sketch crashes right at the point of opening the https connection.
If I do https without logging in files (no SPIFFS), things work. So I believe that there is not enough RAM to support BOTH https and SPIFFS.
Does anyone have the same issues or have suggestions on how to resolve this. I tried to do SPIFFS.end() right before making the https connection, but it still crashes.

The below are my compiled sizes.

HTTP with SPIFFS: (this works)
Sketch uses 287895 bytes (27%) of program storage space. Maximum is 1044464 bytes.
Global variables use 40260 bytes (49%) of dynamic memory, leaving 41660 bytes for local variables. Maximum is 81920 bytes.

HTTPS with SPIFFS: (this crashes)
Sketch uses 333553 bytes (31%) of program storage space. Maximum is 1044464 bytes.
Global variables use 45788 bytes (55%) of dynamic memory, leaving 36132 bytes for local variables. Maximum is 81920 bytes.

HTTPS without SPIFFS: (this works)
Sketch uses 307833 bytes (29%) of program storage space. Maximum is 1044464 bytes.
Global variables use 44540 bytes (54%) of dynamic memory, leaving 37380 bytes for local variables. Maximum is 81920 bytes.

Thanks,
James