• Is the problem just that you don't have a WebSocket server running on 192.168.0.6 port 8080, or that Espruino can't connect to it for whatever reason? I think the connection takes quite a while before it times out, which will unfortunately block Espruino.

    If you create a function called onInit, that will be executed too

    It's executed when loading from flash (if you save with save()) but not immediately after uploading code - which can be a bit confusing.

    The reason is that since setInterval is remembered, if onInit was auto-run, and then you typed save() onInit would get called again at each power-on and you'd end up with two intervals!

About

Avatar for Gordon @Gordon started