I have been away from the forum and ESP8266 for about a year, and have missed out on the conversations and enhancements made to the ESP8266 Arduino Core.
I have a stable WebServer application that monitors the Up and Down status of the garage door. I want to add the feature to send email (text message via 1234567890@mms.att.net) when the garage door is up for too long.
I refactored Boris Shobat's ESP8266_Gmail_Sender into a state machine so that sending an email would not be a blocking task. As a stand alone application, this works well. When I integrated the email Sender into my Garage Door application, the combined application becomes unstable after I send several emails.
I believe the issue is related to heap size.
Running the stand alone Gmail Sender, the heap drops from 39.4k to 24.8k when an email is sent.
On the combined app, the free heap starts at 23.1k and then drops to 8.8k after text message is sent.
Questions:
1) Should WiFiClientSecure be able to coexist with ESP8266WebServer, ESP8266HTTPUpdateServer, WiFiUdp.h, etc?
2) I am running 2.3.0 and see that 2.4.2 is available. Have updates been made to WiFiClientSecure that reduce heap usage?
3) Are there leaner options to WiFiClientSecure?
Thanks in advance for your help.
Greg