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

この動作を確認するには、公開後のサイトへ移動してください。
Comments(0)
この投稿へのコメントは利用できなくなりました。詳細はサイト所有者にお問い合わせください。
bottom of page