Documentation
¶
Index ¶
- type Params
- type RequestEnvelope
- type Wizzer
- func (w *Wizzer) GetStatus(ctx context.Context) (*Params, error)
- func (w *Wizzer) SetBrightness(ctx context.Context, v uint8) error
- func (w *Wizzer) SetCool(ctx context.Context, v uint8) error
- func (w *Wizzer) SetLightOn(ctx context.Context, on bool) error
- func (w *Wizzer) SetSceneId(ctx context.Context, v uint32) error
- func (w *Wizzer) SetTemp(ctx context.Context, v uint32) error
- func (w *Wizzer) SetWarm(ctx context.Context, v uint8) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Params ¶
type Params struct { Mac string `json:"mac,omitempty"` RSSI int32 `json:"rssi,omitempty"` Src string `json:"src,omitempty"` State *bool `json:"state,omitempty"` SceneId uint32 `json:"sceneId,omitempty"` Red uint8 `json:"r,omitempty"` Green uint8 `json:"g,omitempty"` Blue uint8 `json:"b,omitempty"` Cool uint8 `json:"c,omitempty"` Warm uint8 `json:"w,omitempty"` Dimming uint8 `json:"dimming,omitempty"` Temp uint32 `json:"temp,omitempty"` }
type RequestEnvelope ¶
Click to show internal directories.
Click to hide internal directories.