Problem
When connecting to a TCP-based MQTT broker w/no websockets, setting mqtt.enableSSL = true AND mqtt.allowUntrustCACertificate = true results in a successful connection (with the host resolving correctly), but none of the published messages will be processed by the broker. CocoaMQTT just keeps retrying.
Fix
Set enableSSL = true & allowUntrustCACertificate = false
Feature Request
Some sort of .info log level messages would be helpful.
The following works on Swift 5 & Xcode 11.7 on an iOS 12.4 target.
Problem When connecting to a TCP-based MQTT broker w/no websockets, setting
mqtt.enableSSL = true
ANDmqtt.allowUntrustCACertificate = true
results in a successful connection (with the host resolving correctly), but none of the published messages will be processed by the broker. CocoaMQTT just keeps retrying.Fix Set
enableSSL = true
&allowUntrustCACertificate = false
Feature Request Some sort of
.info
log level messages would be helpful.The following works on Swift 5 & Xcode 11.7 on an iOS 12.4 target.