You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I write a program to turn on my computer via telegram bot here: https://github.com/abonec/remote-wol/blob/d728333c554d0afb7bb31b3fc3dfb0960deef49d/gpio.go#L30
I use hwio to turn a relay on and off to short the power button. Now, this part of the program is dead simple and no way to going wrong. But while developing I faced with situations where relay turned on but because of my fault, it stays in this state. It is bad for PC.
Is there some way to check pin state? I want to run a watchdog which every second will check this pin and turn it off if it is turned on.
The text was updated successfully, but these errors were encountered:
I write a program to turn on my computer via telegram bot here:
https://github.com/abonec/remote-wol/blob/d728333c554d0afb7bb31b3fc3dfb0960deef49d/gpio.go#L30
I use hwio to turn a relay on and off to short the power button. Now, this part of the program is dead simple and no way to going wrong. But while developing I faced with situations where relay turned on but because of my fault, it stays in this state. It is bad for PC.
Is there some way to check pin state? I want to run a watchdog which every second will check this pin and turn it off if it is turned on.
The text was updated successfully, but these errors were encountered: