     public var secureMQTT = false
     public var cleanSession = true
     public var willMessage: CocoaMQTTWill?
-    public var presence: CocoaMQTTPresenceType = .away
+    public var presence: UInt8 = 1
     public weak var delegate: CocoaMQTTDelegate? {
         didSet { CocoaMQTTLogger.shared.delegate = delegate }
     }

    case badUsernameOrPassword
    case notAuthorized
    case reserved
}

/**
 * self presence status
 */
@objc public enum CocoaMQTTPresenceType: UInt8 {
    case away = 0
    case online = 1
}

/**

    
    public func ping() {
        printDebug("Ping")
        send(CocoaMQTTFrame(type: CocoaMQTTFrameType.pingreq, payload: [self.presence]), tag: -0xC0)
        self.delegate?.mqttDidPing(self)
    }

