• I'm pretty sure it's exactly as @allObjects says... Keep all your function declarations where they are, but stick the code that does stuff (Wifi connection, OneWire) in a function called onInit and then call that with setTimeout(onInit, 1000) right at the end of your code.

    It's a bit strange I know, but it's probably what you'll have to do when you go to save code to Flash memory, because you'll want certain bits of code (like Wifi connect) to run when power is applied (in onInit) rather than at upload time, which is where they're running at the moment.

About

Avatar for Gordon @Gordon started