I've had the same results doing as you've done. I believe the garbage collector is admirably quick. My code is separated in such a way its not easy to copy and paste here.
Effectively I'm trying to scan for available networks then iterate over them to see if I have an associtated ssid-password pair stored in eeprom. Then with those available, attempt to connect.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thanks for taking a look at this Ollie.
I've had the same results doing as you've done. I believe the garbage collector is admirably quick. My code is separated in such a way its not easy to copy and paste here.
Effectively I'm trying to scan for available networks then iterate over them to see if I have an associtated ssid-password pair stored in eeprom. Then with those available, attempt to connect.
I'm trying an approach which limits the scope (therefore lifetime) of the larger lists as well as exploring compiling the Espruino binaries as per https://github.com/espruino/Espruino/blob/master/README_Building.md#for-esp8266
Thanks again