Adds websocket for opened
All checks were successful
Gitea Build Action / build-go (push) Successful in 26s
Gitea Build Action / build-nuxt (push) Successful in 10m2s

This commit is contained in:
Daniel Svitan
2025-06-07 09:15:00 +02:00
parent 000c12845c
commit 4aad657c9d
2 changed files with 36 additions and 3 deletions

View File

@@ -24,7 +24,7 @@ var token string
// the condition is: distance >= threshold (is door open)
var opened bool
var openedChange = make(chan bool)
var openedChange = make(chan any)
// is door locked
var locked bool = false