Closed SkyOfFeather closed 8 months ago
Sorry. There is no useful information, Maybe you can find some information from CocoaMQTTCONNACKReasonCode in MqttDecodeConnAck callback. Thanks.
Please refer to this demo CocoaMQTT_reply.zip
I have the exact same issue if anyone has any suggestions. That Zip just seems like the repo?
When I connected to 1883, the connection was successful, but when I connected to 8883(enableSSL=false), the connection failed with the error 'Socket closed by remote peer'. When I set enableSSL to true, there will also be an error: "Error Domain=kCFStreamErrorDomainSSL Code=-9806" (null) "UserInfo={NSLocalizedRecoverySuggestion=Error code definition can be found in Apple's SecureTransport. h}".
I am testing the iOS 15.1 system. Here is my code:
With the same parameters, I can successfully connect on the mqttx tool. Here is a screenshot of mqttx:![WeChat3add04cf643d9e091848b06c587a3693](https://github.com/emqx/CocoaMQTT/assets/14194251/5d80f8ac-82e0-477c-a429-f71157a2a19b)
There is a place to set mqtts://on mqttx. How can I modify the code to achieve the same effect?