Documentation ¶
Index ¶
- func Close(id string) error
- func From(v *Device) (err error)
- func Load(id string) error
- func LoadAll() error
- func Open(id string) error
- func Shutdown() error
- func Startup() error
- func Table() *table.Table
- func Unload(id string) error
- type Aggregator
- type Device
- func (d *Device) Action(name string, values map[string]any) (map[string]any, error)
- func (d *Device) Close() error
- func (d *Device) HandleMqtt(typ string, cl *mqtt.Client, payload []byte)
- func (d *Device) Open() error
- func (d *Device) PatchValues(values map[string]any)
- func (d *Device) UnWatchValues(watcher base.DeviceValuesWatcher)
- func (d *Device) Values() map[string]any
- func (d *Device) WatchValues(watcher base.DeviceValuesWatcher)
- func (d *Device) WriteHistory(history map[string]any, timestamp int64)
- func (d *Device) WriteValues(values map[string]any) error
- type PayloadActionDown
- type PayloadActionUp
- type PayloadHistory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Aggregator ¶
type Aggregator struct { aggregator.Aggregator As string }
type Device ¶
type Device struct { Id string `json:"_id" bson:"_id"` ProductId string `json:"product_id" bson:"product_id"` ProjectId string `json:"project_id,omitempty" bson:"project_id"` SpaceId string `json:"space_id,omitempty" bson:"space_id"` Name string `json:"name"` Disabled bool `json:"disabled"` // contains filtered or unexported fields }
func (*Device) HandleMqtt ¶
func (*Device) PatchValues ¶
func (*Device) UnWatchValues ¶
func (d *Device) UnWatchValues(watcher base.DeviceValuesWatcher)
func (*Device) WatchValues ¶
func (d *Device) WatchValues(watcher base.DeviceValuesWatcher)
func (*Device) WriteHistory ¶
type PayloadActionDown ¶
type PayloadActionUp ¶
type PayloadHistory ¶
Click to show internal directories.
Click to hide internal directories.