Open dronebat opened 5 years ago
HI, the formatting of your post is a little broken so its hard to tell what is output versus your questions.
The line of code if (client.connect(MQTT::Connect("mqtt_client_name")
is not using PubSubClient
- but comes from one of the forks (I forget which) that has completely changed the API.
My mistake , please point me example code to connect to SSL port using pubsubclient.
I am unable to connect to cloudmqtt site using pubsubclient via ssl port. Works only with unsecured port, while both SSL port and Websockets Port (TLS only) port are not working.
Platform: ESP8266 Arduino1.8.5 with core 2.5.0-beta1 Server m10.cloudmqtt.com Port 10635 SSL Port 20635 Websockets Port (TLS only) 30635
Declaration:
if (client.connect(MQTT::Connect("mqtt_client_name") .set_auth(mqtt_user, mqtt_pass))) {