Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Connection to a virtual host using android library(How to connect to a virtual host using android library)
Connection to a virtual host using android library [message #1753286] Fri, 03 February 2017 10:22
godfrey mathais is currently offline godfrey mathaisFriend
Messages: 1
Registered: February 2017
Junior Member
I am using the PAho android library and for now i am using the sample application to do an initial connection to my broker. The connection happens properly to the broker url , now i want to connect to a virtual host.
Is there an API that will be helpful for me?

Example configuration:
broker url : tcp://my.broker.com:1883
username : myguest
passwrod : myguest
Vhost : tcupguestTcup

I can connect to the host using
client.connect(conOpt, null, callback);
where conOpt has the username and password.
How can i add the Vhost to my connect request?
Previous Topic:MQTT client fails to reconnect
Next Topic:C client connection time
Goto Forum:
  


Current Time: Thu Apr 18 09:57:11 GMT 2024

Powered by FUDForum. Page generated in 0.02082 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top