Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
MQTT连接
type Config ¶
type Config struct {
Broker string `json:"Broker"` // Broker地址,例如tcp://127.0.0.1:1883
ClientID string `json:"ClientID"` // ClientID
}
MQTT的配置信息格式
type SubscribeType ¶
type SubscribeType struct {
Topic string
Qos byte
Callback gomqtt.MessageHandler
RetryTimes int // 为0表示无限重试
}
Click to show internal directories.
Click to hide internal directories.