Documentation ¶ Index ¶ func Check(conf conf.DevLinkConf) error type MqttClient func (d *MqttClient) Publish(ctx context.Context, topic string, payload []byte) error type PubDev func NewPubDev(conf conf.DevLinkConf) (PubDev, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Check ¶ func Check(conf conf.DevLinkConf) error Types ¶ type MqttClient ¶ type MqttClient struct { // contains filtered or unexported fields } func (*MqttClient) Publish ¶ func (d *MqttClient) Publish(ctx context.Context, topic string, payload []byte) error type PubDev ¶ type PubDev interface { Publish(ctx context.Context, topic string, payload []byte) error } PubDev 发送消息到设备 func NewPubDev ¶ func NewPubDev(conf conf.DevLinkConf) (PubDev, error) Source Files ¶ View all Source files mqtt.go pubDev.go Click to show internal directories. Click to hide internal directories.