🐛 Fixes peripheral delay on door open
All checks were successful
Gitea Build Action / build (push) Successful in 25s
All checks were successful
Gitea Build Action / build (push) Successful in 25s
This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user