-
• #2
Mon 2020.03.23
'use HTTP to download new codes and eval("new codes"). But it always crashed'
Not entirely sure what is meant hear by 'codes' Is the intent to explain why memory is not being cleared of Javascript commands, e.g. code?
' this has an effect similar to completely rebooting Espruino (power off/power on), but without actually performing a full reset of the hardware'
http://www.espruino.com/Reference#l__global_load
http://www.espruino.com/Reference#l__global_reset
Baring that, please post the results ofprocess.env
and we'll go from there.
Sometimes I want the update codes by METHOD load(), and use HTTP to download new codes and eval("new codes"). But it always crashed. Especially when I use serval setInterval() in code.
When I invoke load() in code, it still have the past codes in the RAM. Is it possible to refresh codes by codes? How can I clean RAM datas, or the garbage?