Documentation
¶
Index ¶
- type Client
- type MessageHandler
- type Roma
- func (c *Roma) ConnectionLost(client MQTT.Client, err error)
- func (r *Roma) GetConnectStatus() bool
- func (r *Roma) GetSubDeviceConnectStatus(deviceIdentifier string) bool
- func (c *Roma) HandleDeviceCommand(command proto.Command)
- func (c *Roma) HandleDeviceDelete(deviceIdentifier string)
- func (c *Roma) OnConnected(client MQTT.Client)
- func (r *Roma) Run()
- func (r *Roma) SendDeviceAddWaitResponse(deviceInfo proto.DeviceInfo) error
- func (r *Roma) SendDeviceChangeStatusWaitResponse(deviceIdentifier string, connectStatus proto.DeviceConnectStatus) error
- func (r *Roma) SendDeviceCommandResponse(mid int, success bool, body interface{}) (err error)
- func (r *Roma) SendDeviceData(deviceIdentifier string, services []proto.Service) (err error)
- func (r *Roma) SendDeviceQueryWaitResponse(deviceIdentifier string) (device proto.DeviceInfo, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
Run()
GetConnectStatus() bool
GetSubDeviceConnectStatus(deviceIdentifier string) bool
SendDeviceAddWaitResponse(deviceInfo proto.DeviceInfo) error
SendDeviceChangeStatusWaitResponse(deviceIdentifier string, connectStatus proto.DeviceConnectStatus) error
SendDeviceQueryWaitResponse(deviceIdentifier string) (proto.DeviceInfo, error)
SendDeviceCommandResponse(mid int, success bool, body interface{}) error
SendDeviceData(deviceIdentifier string, services []proto.Service) error
}
type MessageHandler ¶
type Roma ¶
type Roma struct {
// contains filtered or unexported fields
}
func (*Roma) GetConnectStatus ¶
func (*Roma) GetSubDeviceConnectStatus ¶
func (*Roma) HandleDeviceCommand ¶
func (*Roma) HandleDeviceDelete ¶
func (*Roma) OnConnected ¶
func (*Roma) SendDeviceAddWaitResponse ¶
func (r *Roma) SendDeviceAddWaitResponse(deviceInfo proto.DeviceInfo) error
func (*Roma) SendDeviceChangeStatusWaitResponse ¶
func (r *Roma) SendDeviceChangeStatusWaitResponse(deviceIdentifier string, connectStatus proto.DeviceConnectStatus) error
func (*Roma) SendDeviceCommandResponse ¶
func (*Roma) SendDeviceData ¶
func (*Roma) SendDeviceQueryWaitResponse ¶
func (r *Roma) SendDeviceQueryWaitResponse(deviceIdentifier string) (device proto.DeviceInfo, err error)
Click to show internal directories.
Click to hide internal directories.