admin: add commands to enable/disable LEDs and the reset alarm

master
S.J.R. van Schaik 7 years ago
parent 55b4590779
commit 20e650f7e6
  1. 12
      admin/main.go

@ -30,6 +30,8 @@ var (
"write": cmd_write, "write": cmd_write,
"append": cmd_append, "append": cmd_append,
"buzzer": cmd_buzzer, "buzzer": cmd_buzzer,
"led": cmd_led,
"reset": cmd_reset,
} }
) )
@ -137,7 +139,15 @@ func cmd_append(tbm *TBM, args []string) error {
} }
func cmd_buzzer(tbm *TBM, args []string) error { func cmd_buzzer(tbm *TBM, args []string) error {
cmd_generic(tbm, "buzzer", args, nil) return cmd_generic(tbm, "buzzer", args, nil)
}
func cmd_led(tbm *TBM, args []string) error {
return cmd_generic(tbm, "led", args, nil)
}
func cmd_reset(tbm *TBM, args []string) error {
return cmd_generic(tbm, "reset", args, nil)
} }
func main() { func main() {

Loading…
Cancel
Save