From 3d08514060fcac3b2c1666884d42a3acf4e8078c Mon Sep 17 00:00:00 2001 From: Jason2866 Date: Sat, 11 May 2019 14:19:54 +0200 Subject: [PATCH] add -DBEARSSL_SSL_BASIC When using TLS, this flag avoids loading all the Elliptic Curves algorithm, and saves ~45KB of flash. Anyways, Elliptic Curves are far too slow for ESP8266 and the handshake would take more the 5 seconds. With this flag we limit to RSA algorithms which are faster. Thx for the tipp @s-hadinger --- platformio.ini | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index ae59e2faa..0b7f98c6c 100644 --- a/platformio.ini +++ b/platformio.ini @@ -71,7 +71,8 @@ platform = espressif8266@~2.0.4 build_flags = ${esp82xx_defaults.build_flags} -Wl,-Teagle.flash.1m.ld ; Code optimization see https://github.com/esp8266/Arduino/issues/5790#issuecomment-475672473 - -O2 + -O2 + -DBEARSSL_SSL_BASIC ; lwIP 1.4 ; -DPIO_FRAMEWORK_ARDUINO_LWIP_HIGHER_BANDWIDTH ; lwIP 2 - Low Memory