Hie, I am trying to connect CocoaMQTT With HiveMQ, with correct credentials, I had verified them too, but in acknoledgement it says NotAuthrized, below is code I am trying.
Note:- Two way ssl is also working had verified.
///Connection Building
func buildMQTTConnection() {
///MQTT 5.0
let clientID = "CocoaMQTT-" + String(ProcessInfo().processIdentifier)
Hie, I am trying to connect CocoaMQTT With HiveMQ, with correct credentials, I had verified them too, but in acknoledgement it says NotAuthrized, below is code I am trying.
Note:- Two way ssl is also working had verified.
// let mqtt5 = CocoaMQTT5(clientID: clientID, host: "broker.hivemq.com", port: 1883) ///8dbc6815c7824b0482d7ae0439514faa.s1.eu.hivemq.cloud mqtt5 = CocoaMQTT5(clientID: clientID, host: "8dbc6815c7824b0482d7ae0439514faa.s1.eu.hivemq.cloud", port: 8883) /// let connectProperties = MqttConnectProperties() connectProperties.topicAliasMaximum = 0 connectProperties.sessionExpiryInterval = 0 connectProperties.receiveMaximum = 100 connectProperties.maximumPacketSize = 500 mqtt5?.connectProperties = connectProperties mqtt5?.logLevel = .error
CocoaMQTT Failed to authenticate with HiveMQ, I Am using 5.0 version for CocoaMQTT. Any solution.