|
@@ -413,9 +413,8 @@ func (d *Device) doMQTTAccess() error {
|
|
|
if err != nil {
|
|
|
panic(err)
|
|
|
}
|
|
|
-
|
|
|
- opts.SetDefaultPublishHandler(d.messageHandler)
|
|
|
opts.SetTLSConfig(&tls.Config{Certificates: []tls.Certificate{cert}, InsecureSkipVerify: true})
|
|
|
+ opts.SetDefaultPublishHandler(d.messageHandler)
|
|
|
|
|
|
//create and start a client using the above ClientOptions
|
|
|
c := MQTT.NewClient(opts)
|