All relay turns on automatically when my nodemcu reboot

Just tried your sketch on my NodeMCU, same problem here. Don’t know what’s the reason, it should work. Instead of restoring pin states, all gpios associated with buttons goes low after reset.

Use virtual pins or go back to 2.16.5.

@Dmitriy Do you know what is the reason for this? Is there a fix for this issue?

1 Like