Beispiel #1
0
func Disconnect(m MQTT.Client) error {
	if m.IsConnected() {
		m.Disconnect(20)
		log.Info("client disconnected")
	}
	return nil
}