Anonymous User
  Thursday, 25 June 2020
  2 Replies
  2.2K Visits
  Subscribe
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 !!
4 years ago
·
#445
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
·
#446
Thanks, working perfect !
  • Page :
  • 1
There are no replies made for this post yet.
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below.
Supported: gif,jpg,png,jpeg,zip,rar,pdf
· Insert · Remove
  Upload Files (Maximum 10MB)