• Espruino actually already includes mbedtls: https://github.com/espruino/Espruino/tre­e/master/libs/crypto

    You should be able to include it in the ESP8266 build quite easily by adding the following lines:

    https://github.com/espruino/Espruino/blo­b/master/boards/PICO_R1_3.py#L40-L41

    Note that including TLS will use a lot more memory, but I believe you can still have AES without TLS.

    When you say ESP8266 4MB do you mean 4MBit of 4MByte? Because my understanding was that only the very earliest modules available were 4MBit (512kB), and now they're basically all 4MByte.

    Espruino does build and run for those early 512k chips, and obviously that creates a lot more restrictions that something with 8x the flash - but if you're on the 4MByte version then you really shouldn't have to be concerned about flash memory usage at all - it's really only RAM usage you care about.

About

Avatar for Gordon @Gordon started