add sensor handling.
This commit is contained in:
@@ -16,6 +16,9 @@ func New(addr string) (lucifer3.Service, error) {
|
||||
svc := &service{}
|
||||
|
||||
e := echo.New()
|
||||
e.HideBanner = true
|
||||
e.HidePort = true
|
||||
|
||||
e.GET("/state", func(c echo.Context) error {
|
||||
svc.mu.Lock()
|
||||
data := svc.data
|
||||
|
||||
Reference in New Issue
Block a user