Fixes failing https connections to HelloServerBearSSL by mhightower83 · Pull Request #8206 · esp8266/Arduino (original) (raw)

Fixes failing https connections to HelloServerBearSSL when using the MMU option with 48K IRAM shared. This happened after build changes to the example that increased IRAM code size that caused free IRAM for Heap to fall below ~16K, then "new" would OOM out in WiFiClientSecureBearSSL. This was observed when used with #8196 (comment)

Added private function to try IRAM first then switch to DRAM on fail, to WiFiClientSecureBearSSL for iobuff allocations.