@Gordon - I was thinking about this the other day! There's definitely good uses for having it as an event. I'd go with E as well, my thinking is that you can treat E as a placeholder object representing the board, and you can then add other things later like events for sleeping, waking, maybe some properties of the hardware (like E.pins[]). EDIT: If going for some sort of javascript standardisation, Johnny Five uses .on('ready') which I think would work here.
@tve - I'd like something like that too. My use case is being able to telnet into boards, reset them and then load new code without wiping the code that connects to the network and starts a server.
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.
@Gordon - I was thinking about this the other day! There's definitely good uses for having it as an event. I'd go with E as well, my thinking is that you can treat E as a placeholder object representing the board, and you can then add other things later like events for sleeping, waking, maybe some properties of the hardware (like E.pins[]). EDIT: If going for some sort of javascript standardisation, Johnny Five uses .on('ready') which I think would work here.
@tve - I'd like something like that too. My use case is being able to telnet into boards, reset them and then load new code without wiping the code that connects to the network and starts a server.