To get you logging out of the request memory scope, you could create a valueObj for the data to log - var valueObj = { p1:v1, p2:v2, ...} and then do the logging deferred with setTimout(function(valueObj){<logging code; >},<timeoutTime>,valueObject). This may for a short time use a bit more memory but all communication transaction held resources get released earlier. The timeout time has not to be a real defer, it is there to break the execution flow
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.
To get you logging out of the request memory scope, you could create a valueObj for the data to log -
var valueObj = { p1:v1, p2:v2, ...}
and then do the logging deferred withsetTimout(function(valueObj){<logging code; >},<timeoutTime>,valueObject)
. This may for a short time use a bit more memory but all communication transaction held resources get released earlier. The timeout time has not to be a real defer, it is there to break the execution flow