Just for anyone else, you can write functions that get called on init and kill. kill is called before the reset happens, and init happens after...
init
kill
/*JSON{ "type" : "init", "generate" : "jswrap_net_init" }*/ void jswrap_net_init() { } /*JSON{ "type" : "kill", "generate" : "jswrap_net_kill" }*/ void jswrap_net_kill() { }
@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.
Just for anyone else, you can write functions that get called on
init
andkill
.kill
is called before the reset happens, andinit
happens after...