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
This commit is contained in:
Jason2866 2019-05-11 14:19:54 +02:00 committed by GitHub
parent bc211e8c78
commit 3d08514060
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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