Documentation ¶
Index ¶
- Constants
- func UnRegisterPowerChangeCallback(d *Device, topic, key string)
- type Device
- func (d *Device) GetExtData(key any) (val any, ok bool)
- func (d *Device) IsDisconnected() bool
- func (d *Device) Login() error
- func (d *Device) OnLine() bool
- func (d *Device) ReceiveMessageHandler(c MQTT.Client, m MQTT.Message)
- func (d *Device) ResigsterPowerChangeCallbackFunc(subTopic, key string, f func(string)) error
- func (d *Device) Stop()
- func (d *Device) StoreExtData(key any, val any)
- func (d *Device) SubTopicOption()
- func (d *Device) UnRegisterPowerChangeCallbackFunc(subTopic, key string)
Constants ¶
View Source
const ( Disconnected uint32 = iota Connecting Reconnecting Connected )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Device ¶
type Device struct {
// contains filtered or unexported fields
}
func CreateDevice ¶
func GetBemfaDevice ¶
func (*Device) IsDisconnected ¶
func (*Device) ReceiveMessageHandler ¶
func (*Device) ResigsterPowerChangeCallbackFunc ¶
func (*Device) StoreExtData ¶
func (*Device) SubTopicOption ¶
func (d *Device) SubTopicOption()
func (*Device) UnRegisterPowerChangeCallbackFunc ¶
Click to show internal directories.
Click to hide internal directories.