• Your example does not seem very complex, and you've obtained an IP address.

    The only thing I typically would not have in my code is changing the clock speed. I don't know the implications of that - maybe none. Why do you do that out of interest?

    But if this reboots after a set period, the first thing I'd check would be power. The NodeMCU should not need capacitors - at least I've never needed anything other than the board, but are you confident that the USB supply is providing enough power? Maybe try a wall mounted USB supply, and connect to the board over Telnet to upload the code.

    You are probably aware you can permanently save wifi settings with wifi.save() which makes the boards very convenient to work with wirelessly.

About

Avatar for Ollie @Ollie started