TLS on ESP32, troubles for latest firmware v.2.05 #7400
Replies: 1 comment
-
Posted at 2020-04-23 by @MaBecker Disable BLE and try again http://www.espruino.com/Reference#l_ESP32_enableBLE Posted at 2020-04-23 by @MaBecker and try this simple snippet https://github.com/espruino/Espruino/blob/master/targets/esp32/tests/get_web_page_https.js Posted at 2020-04-23 by user111703 When detect command - BLE is disable in sketch then all other commands after that is break... Posted at 2020-04-23 by user111703 Of course first of all I try to use simple request https w/o options ca,key and cert. But result is @no enough memory" when call setup_ssl. Posted at 2020-04-23 by user111703 Not fix and Heap less then before BLE was enable. Attachments: Posted at 2020-04-23 by @MaBecker can you build the firmware? If yes, remove some modules like 'FILESYSTEM' and 'FLASHFS' and try again. https://github.com/espruino/Espruino/blob/master/boards/ESP32.py Posted at 2020-04-23 by user111703 Sorry,I cant build, but any way in my final sketch I use file system for upload PEM certificate using HTML5 on web page for user. Posted at 2020-04-23 by @MaBecker There is no need to use filesystem, because storage library is much more efficient in resource consumption http://www.espruino.com/Reference#Storage http://www.espruino.com/Reference#StorageFile Posted at 2020-04-23 by user111703 Ok, but now I use simple JS sketch that not call 'fs' or 'flash' . Posted at 2020-04-23 by @MaBecker
ok, so this is not Espruino filesystem. Posted at 2020-04-23 by @MaBecker HTTP can work again on ESP32, see espruino/Espruino#1777 (comment) Posted at 2020-04-23 by user111703 Yea, but it is need install SDK for build firmware with this option. Actually I looking for easy way to fix it. Because if deploy SW what reason to use JS ?, native C or C++ and ASM is not problem for me. Now, JS sketch is finished just I was forget to test for TLS, because using free MQTT and HTTP servers. Could you share/send ,If you has bin file with extended heap settings? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-23 by user111703
Dears, I know about troubles with HTTPS on ESP32 - that get error with SSL out of memory at v.2.0 and higher. I tested on v2.04 and try latest v2.05, unfortunately JS again need memory for code to catch certificate , deploy ssl and connect by https.
But why is it not working when I manual plug PEM certificate, Because same approach is working on ESP32 for Arduino ?
Error: mbedtls_ssl_setup: No enough memory!
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions