i added "node.restart()" at the top of the script, now it just boot loops!
i guess i should have asked how to put it into the script!
i'll just reflash firmware and see how it goes.
....
yep, back into operation again
so - where does the restart need to be placed?
also - when trying to flash, it won't flash unless the relays are disconnected from the NodeMCU 3.3 VCC & GND - does this mean my relay board if problematic?
and well - I DID try to do that, but totally forgot to add the GND to the relay board!
it kinda worked, but the relays were not clicking, I will keep testing tonight...
also - where would I put the "node.restart()" to ensure it gets a fresh start (that's what it is for right?) in a power failure? at the start or end?