🐛 Fixes peripheral delay on door open
All checks were successful
Gitea Build Action / build (push) Successful in 25s

This commit is contained in:
Daniel Svitan
2025-06-01 12:49:30 +02:00
parent 100bab01e4
commit 995bf90efb
2 changed files with 6 additions and 10 deletions

View File

@@ -85,6 +85,7 @@ func makePostReq(url string, body any) ([]byte, error) {
}
req.Header.Set("Authorization", token)
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
return nil, err
@@ -119,8 +120,8 @@ func main() {
Action: test,
},
{
Name: "get",
Usage: "get door state",
Name: "open",
Usage: "get door state (opened or closed)",
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "raw",