Skip to content

Commit

Permalink
baetyl-3167: Add device status
Browse files Browse the repository at this point in the history
  • Loading branch information
hanpengfei01 committed Sep 11, 2023
1 parent c285d48 commit 3790f10
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dmcontext/device.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ import (
v1 "github.com/baetyl/baetyl-go/v2/spec/v1"
)

const (
DeviceInactivated = 0
DeviceOnline = 1
DeviceOffline = 2
DeviceUnknown = 3
)

type DeviceProperty struct {
Name string `yaml:"name,omitempty" json:"name,omitempty"`
ID string `yaml:"id,omitempty" json:"id,omitempty" binding:"nonzero"`
Expand Down

0 comments on commit 3790f10

Please sign in to comment.