Documentation ¶
Index ¶
- func Dim(deviceId string, to int, client *CoapClient) error
- func SetColorTemp(deviceId string, kelvin uint, client *CoapClient) error
- func SetRGB(deviceId string, r uint8, g uint8, b uint8, client *CoapClient) error
- func TurnOff(deviceId string, client *CoapClient) error
- func TurnOn(deviceId string, client *CoapClient) error
- type CoapClient
- type ColorTemp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetColorTemp ¶
func SetColorTemp(deviceId string, kelvin uint, client *CoapClient) error
func TurnOff ¶
func TurnOff(deviceId string, client *CoapClient) error
func TurnOn ¶
func TurnOn(deviceId string, client *CoapClient) error
Types ¶
type CoapClient ¶
type CoapClient struct {
// contains filtered or unexported fields
}
func NewCoapClient ¶
func NewCoapClient(baseUrl string, username string, preSharedKey string) *CoapClient
Click to show internal directories.
Click to hide internal directories.