Ardurno PubsubClient Mqtt ESP8266 connection issue on Hive MQ
I have a HiveMq mqtt broker credential to connect MQTT broker using PubsubClient from Ardurno .. I tried to connect its throwing an error -4 time out.
Hivemq broker url - xxxxxxx.s2.eu.hivemq.cloud Username : xxxx Password : xxxx Port - 8883 No Certificate Code - client.connect("client_id",mqtt_username,mqtt_password))
I tried in MQTT explorer its connected because i enabled the Tls option.Attached the screen for your reference. Could some one share the code to enable the Tls on PubsubClient.(Sample code). Note that no certificate. only encription.(Hive does not give certificate)
[Mqtt Explorer] : https://i.stack.imgur.com/nGzVl.png