Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Paho C++ connect options problem
Paho C++ connect options problem [message #1696631] Wed, 27 May 2015 14:43 Go to next message
Mohcine BARAZZOUQ is currently offline Mohcine BARAZZOUQFriend
Messages: 4
Registered: May 2015
Junior Member
Hi everybody,

I have a problem with mqtt::connect_options

After creation of a async_client
I'm trying to connect my client to a broker by using connect options ptr:

   mqtt::async_client* MqttClient;
   mqtt::connect_options MqttOptions;
   
MqttClient = new mqtt::async_client(sMqttAdress.toStdString().c_str(),sMqttClientID.toStdString().c_str());

   MqttOptions.set_clean_session(true);
   MqttOptions.set_user_name(USERNAME);
   MqttOptions.set_password(PASSWORD);

   Mqttconntok = MqttClient->connect(MqttOptions);



I get this error message :

/home/mbarazzouq/Ecar/0.3.x/newEcar/API/MQTT/Src/eCar_API_Mqtt.cpp:288: error: undefined reference to `mqtt::connect_options::set_user_name(std::string const&)'
/home/mbarazzouq/Ecar/0.3.x/newEcar/API/MQTT/Src/eCar_API_Mqtt.cpp:289: error: undefined reference to `mqtt::connect_options::set_password(std::string const&)'


Any Ideas ?? Rolling Eyes

Thanks
Re: Paho C++ connect options problem [message #1696877 is a reply to message #1696631] Fri, 29 May 2015 08:16 Go to previous message
Mohcine BARAZZOUQ is currently offline Mohcine BARAZZOUQFriend
Messages: 4
Registered: May 2015
Junior Member
Help please !!!
Previous Topic:Paho CClient Compatibility with Linux kernel and GCC version
Next Topic:How to resolve "Persistence already in use (32200)"
Goto Forum:
  


Current Time: Thu Nov 23 15:16:59 GMT 2017

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

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