I'm afraid I don't have time to test at the moment, but if it doesn't break anything else I can add it to the module. You might need to use "WIFI GOT IP" instead of "WIFI CONNECTED" though - since I guess you care more about whether you have an IP address than if you're connected.
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.
I'm afraid there aren't any events at the moment - where did you find out about them from? You could try this and see if it gives you what you need:
I'm afraid I don't have time to test at the moment, but if it doesn't break anything else I can add it to the module. You might need to use
"WIFI GOT IP"
instead of"WIFI CONNECTED"
though - since I guess you care more about whether you have an IP address than if you're connected.