During reset ESP32 pins are set to their defaults, which happens to be low for pin 5, where the relay is connected to. If it was inverted, active low, then reboots for any reason (connection loss, ota updates) would not cut the power. This is very unfortunate, since I can only use it with UPS protected devices or where a short power loss does not matter much. You could argue that the current way is better, a turned off plug would turn on for a short time, and somebody would not want that, but how likely is that.
top of page
Pour voir cela fonctionner, rendez-vous sur votre site en ligne.
Comments (0)
bottom of page