Documentation
¶
Index ¶
Constants ¶
View Source
const ( UnknownPort PortType = 0 Fan = 2 Light = 3 Plug = 4 AC = 5 Humidifer = 6 Dehumidifer = 7 Heater = 8 )
Variables ¶
View Source
var ACInfinitySvcUUID = ble.MustParse("70D51000-2C7F-4E75-AE8A-D758951CE4E0")
View Source
var ACInfinityWriteUUID = ble.MustParse("70D51001-2C7F-4E75-AE8A-D758951CE4E0")
var ACInfinityNotifyUUID = ble.MustParse("70D51002-2C7F-4E75-AE8A-D758951CE4E0")
View Source
var DeviceInformationUUID = ble.MustParse("180a")
View Source
var GenericAccessUUID = ble.MustParse("1800")
View Source
var HEAD = []byte{165, 0}
Functions ¶
Types ¶
type ACDevice ¶
type ACDevice struct { Type int8 Version int8 PortCount int8 // contains filtered or unexported fields }
func (*ACDevice) HandleNotification ¶
func (*ACDevice) SendCommand ¶
type ACDevicePortInfo ¶
type ACDevicePortInfo struct {
// contains filtered or unexported fields
}
type ACDeviceState ¶
type ACDeviceState struct {
// contains filtered or unexported fields
}
func (*ACDeviceState) FromNotif ¶
func (s *ACDeviceState) FromNotif(req []byte)
func (*ACDeviceState) FromNotifV6 ¶
func (s *ACDeviceState) FromNotifV6(req []byte)
func (*ACDeviceState) String ¶
func (s *ACDeviceState) String() string
type Gateway ¶
type Gateway struct {
// contains filtered or unexported fields
}
func NewGateway ¶
func (*Gateway) HandleAdvertisement ¶
func (g *Gateway) HandleAdvertisement(adv ble.Advertisement)
Click to show internal directories.
Click to hide internal directories.