Fyi, I have a version working that reads the certs from the file system (sd card on Espruino). I modified the appropriate functions in network.c to attempt this if the ca/cert/key values are present, but shorter than 100 characters (assuming a path) and the USE_FILESYSTEM option is set. It fixes the memory issues and seems like a good option for many devices.
I can submit a PR if you would like to incorporate this feature into the main project.
It might be nice to have flash memory as option for those without a file system. I'll look at adding this soon.
© Espruino, powered by microcosm.
Report a problem