Documentation
¶
Index ¶
Constants ¶
View Source
const ( ServiceUUID = "f000aa6404514000b000000000000000" CharacteristicUUID = "f000aa6604514000b000000000000000" Light1 = 0 Light2 = 1 Light3 = 2 WriteValueLight1ON = 0x51 WriteValueLight1OFF = 0x90 WriteValueLight2ON = 0x13 WriteValueLight2OFF = 0x52 WriteValueLight3ON = 0x15 WriteValueLight3OFF = 0x54 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct {
Mac string `json:"mac_address"`
Light1 bool `json:"light1"`
Light2 bool `json:"light2"`
Light3 bool `json:"light3"`
PairFlag bool `json:"pair_flag"`
ProductType ProductType `json:"product_type"`
}
type ProductType ¶
type ProductType uint8
const ( ProductTypeTouch1 ProductType = 0 ProductTypeTouch2 ProductType = 1 ProductTypeTouch3 ProductType = 2 ProductTypeRollCtrl ProductType = 3 )
Click to show internal directories.
Click to hide internal directories.