@Ollie thanks - sorry, I missed your post while typing the response here :)
With hostname I was getting the out of memory issue after about 7 requests
That sounds like a memory leak in the ESP8266 code then. Probably the callback that's being locked but not unlocked in the C code.
@Gordon started
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.
@Ollie thanks - sorry, I missed your post while typing the response here :)
That sounds like a memory leak in the ESP8266 code then. Probably the callback that's being locked but not unlocked in the C code.