Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultClientInfo = ClientInfo{ MqttBrokers: []string{"tcp://106.15.225.172:1883"}, ProductID: "254pwnKQsvK", DeviceName: "test5", DeviceSecret: "6skuocmEga94+OhVYRGWUphWlX0=", } SubDevice = ClientInfo{ ProductID: "255fCKEJ02I", DeviceName: "subdeviceaaaa", DeviceSecret: "uygGxwKG84DIwS5LAluVLRa9Xow=", } DefaultGateway = ClientInfo{ MqttBrokers: []string{"tcp://106.15.225.172:1883"}, ProductID: "255fCsZtKEM", DeviceName: "test1", DeviceSecret: "YZy3xOuvw4YfupMDnLA+PzmMTRA=", } DefaultRemoteConfig = ClientInfo{ MqttBrokers: []string{"tcp://106.15.225.172:1883"}, ProductID: "255fCsZtKEM", DeviceName: "test1", DeviceSecret: "vsjl+0R8/kpkLd0PJ0my1HN8XDg=", } )
Functions ¶
func GetMqttClient ¶
func GetMqttClient(c *ClientInfo) (mc mqtt.Client, err error)
Types ¶
type AssertInfo ¶
Click to show internal directories.
Click to hide internal directories.