By Guest on Thursday, 25 June 2020
Posted in General
Replies 2
Likes 0
Views 2.5K
Votes 0
I'm trying to connect to cloudamqp, but didn't connect, with or without TLS, need change anything else ?

txtHost.text := 'prawn.rmq.cloudamqp.com';
//txtHost.text := '18.231.143.44';
txtDefaultPort.text := '1883';
txtSSLPort.text := '8883';
chkTLS.Checked := True;
WSClient.Options.Parameters := '';
MQTT.Authentication.Enabled := True;
MQTT.Authentication.UserName := '****';
MQTT.Authentication.Password := '****';


Port 1883:
#disconnected
#exception:Connection Closed Gracefully.

Port 8883: (TLS)
#disconnected

Thanks !!
Hello,

Most probably the port 1883 is not using websocket as protocol, instead try to connect using plain TCP protocol, just set RFC6455 property to false before connect


WSClient.Specifications.RFC6455 := False;


Kind Regards,
Sergio
·
4 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks, working perfect !
·
4 years ago
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post