How are you powering sonoff when it's not connected to the commuter via USB?
Does it have it's own dc convertor from mains voltage?
Wi fi won't come up if the power supply is not powerful enough - I think you need around 600ma.
@Wilberforce 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.
How are you powering sonoff when it's not connected to the commuter via USB?
Does it have it's own dc convertor from mains voltage?
Wi fi won't come up if the power supply is not powerful enough - I think you need around 600ma.