Open HWDW opened 10 months ago
I don’t understand why the message qos of dup=0 should be set to qos0 @discardableResult public func publish(_ topic: String, withString string: String, qos: CocoaMQTTQoS = .qos1, DUP: Bool = false, retained: Bool = false, properties: MqttPublishProperties) -> Int { var fixQus = qos if !DUP{ fixQus = .qos0 } let message = CocoaMQTT5Message(topic: topic, string: string, qos: fixQus, retained: retained) return publish(message, DUP: DUP, retained: retained, properties: properties) }
I don’t understand why the message qos of dup=0 should be set to qos0 @discardableResult public func publish(_ topic: String, withString string: String, qos: CocoaMQTTQoS = .qos1, DUP: Bool = false, retained: Bool = false, properties: MqttPublishProperties) -> Int { var fixQus = qos if !DUP{ fixQus = .qos0 } let message = CocoaMQTT5Message(topic: topic, string: string, qos: fixQus, retained: retained) return publish(message, DUP: DUP, retained: retained, properties: properties) }