lockserver/zwavejs/messages-outgoing.go
Finn 054008eb1f Initial commit
Connects to zwave-js, syncs all locks and codeslots with database, and records an event log. No support for updating code slots.
2024-04-08 21:25:36 -07:00

19 lines
455 B
Go

package zwavejs
type Command string
var (
InitializeCommand Command = "initialize"
StartListeningCommand Command = "start_listening"
)
type OutgoingMessage struct {
MessageID string `json:"messageId"`
Command Command `json:"command"`
}
type Initialize struct {
OutgoingMessage
SchemaVersion int `json:"schemaVersion"`
AdditionalUserAgentComponents map[string]string `json:"additionalUserAgentComponents"`
}