4 questions
0 votes
1 answer
246 views
MQTT client does not connect, disconnects after receiving 0 data from broker
As the titles indicates my client is closing after receiving 0 data from broker. My broker uses a Self Signed Certificate. Next I will indicate my code and logs. func selfSignedSSLSetting() { ...
0 votes
1 answer
122 views
CocoaMQTT Server connection refused
Cannot connect with cocoamqtt 5.0, it says connection refused when using in Xcode, below is code :- func buildMQTTConnection() { ///MQTT 5.0 let clientID = "CocoaMQTT-" + String(...
0 votes
1 answer
465 views
SwiftUI & CocoaMQTT Server - How to connect without using button?
I am building an app that will read a value over the Wi-Fi, provided by a Raspberry Pi and I am using MQTT server and client. Using UIKit was easy and the delegate methods were very user friendly in ...
0 votes
1 answer
236 views
MQTT not connecting immediately?
I'm using CocoaMqtt, which is not connecting immediately taking 6-7sec time. Why which is taking too much time, and how to resolve it? My code is: func connectMqtt(mqttProfile: MQTTConfiguration, ...