That ```setIP()``` function shouldn't be in the docs - it isn't implemented.
Your module not found message is not unusual. To test loaded, load the above code in the IDE from right hand side. Then in left hand side key:
wifi.getStatus();```
You should get a return from that to indicate module was found and loaded and then can proceed to connect and subsequently save your wifi settings for easy connect at boot.
If I follow, you mean you can't consistently find it? Well you can jump on your router and reserve the IP address? That's what I do. Next time it boots you'll know its IP which is great for servers and connecting over Telnet.
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.
You should get a return from that to indicate module was found and loaded and then can proceed to connect and subsequently save your wifi settings for easy connect at boot.