Securesocket #900
Replies: 2 comments 7 replies
-
Are you talking about the TLS negotation failing as the the chunk size on the the server is too big - or the data you are requesting once the connection has been established? |
Beta Was this translation helpful? Give feedback.
-
Most of the memory used for TLS is allocated in the JavaScript heap. The error message in your debug log indicates that the JavaScript heap is full. The default allocation for JavaScript heaps on ESP32 is 32 KB. There is plenty of memory on ESP32 to increase that. A practical limit is somewhere between 96 and 128 KB (because of the non-contiguous memory of ESP32), but more than 64 KB is seldom necessary. If you haven't tried increasing that, please do. You just need to add something like this to your project's manifest: "creation": {
"static": 65536
} |
Beta Was this translation helpful? Give feedback.
-
"https://github.com/Moddable-OpenSource/moddable/blob/public/documentation/network/securesocket.md#memory" mentions the memory-constraints of using TLS. In my program I am reading information from the "aylanetworks.com" server in chunks of 16KB data resulting in an "memory full" error. Will it help if I buy an ESP32 WRover with 8MB PSRAM?
Beta Was this translation helpful? Give feedback.
All reactions