Open SmritiSYadav opened 4 years ago
Follow below setup to enable TLS
private let session = MQTTSession()!
let policy = MQTTSSLSecurityPolicy(pinningMode: .none)
policy?.allowInvalidCertificates = true
policy?.validatesCertificateChain = false
policy?.validatesDomainName = false
let transport = MQTTSSLSecurityPolicyTransport()
transport.host = "192.168.0.1"
transport.port = 8883
transport.tls = true
transport.certificates = nil
transport.securityPolicy = policy
session.transport = transport
session.delegate = self
Short description
Environment
Link to logs
Create a GIST which is a paste of your logs, and link them here. Please do NOT paste your full logs here, it will make issue very long and hard to read!
Steps to reproduce
Expected behaviour
Actual behaviour
Other information