Documentation ¶
Index ¶
- func Access(model *accesspb.Model) service.Lifecycle
- func AirQualitySensorAuto(model *airqualitysensor.Model) *service.Service[string]
- func Electric(model *electric.Model) service.Lifecycle
- func FanSpeed(model *fanspeed.Model, presets ...fanspeed.Preset) service.Lifecycle
- func GetAirQualityState() *traits.AirQuality
- func MeterAuto(model *meter.Model) *service.Service[string]
- func OccupancySensorAuto(model *occupancysensor.Model) *service.Service[string]
- func OpenClose(model *openclose.Model) service.Lifecycle
- type UdmiServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AirQualitySensorAuto ¶
func AirQualitySensorAuto(model *airqualitysensor.Model) *service.Service[string]
func GetAirQualityState ¶
func GetAirQualityState() *traits.AirQuality
func OccupancySensorAuto ¶
func OccupancySensorAuto(model *occupancysensor.Model) *service.Service[string]
Types ¶
type UdmiServer ¶
type UdmiServer struct { gen.UnimplementedUdmiServiceServer // contains filtered or unexported fields }
func NewUdmiServer ¶
func NewUdmiServer(log *zap.Logger, deviceName string) *UdmiServer
func (*UdmiServer) GetExportMessage ¶
func (u *UdmiServer) GetExportMessage(ctx context.Context, request *gen.GetExportMessageRequest) (*gen.MqttMessage, error)
func (*UdmiServer) PullExportMessages ¶
func (u *UdmiServer) PullExportMessages(request *gen.PullExportMessagesRequest, messagesServer gen.UdmiService_PullExportMessagesServer) error
Click to show internal directories.
Click to hide internal directories.