Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] get connect_options from async_client

Hi

 

Paho mqtt cpp (I’m using async)

 

Gary.

 

From: Frank Pagliughi <fpagliughi@xxxxxxxxxxxxxx>
Sent: 10 January 2024 14:18
To: General development discussions for paho project <paho-dev@xxxxxxxxxxx>
Cc: Gary Metalle <Gary.Metalle@xxxxxxxxx>
Subject: Re: [paho-dev] get connect_options from async_client

 

Which library/language?



On Jan 10, 2024, at 8:47 AM, Gary Metalle via paho-dev <paho-dev@xxxxxxxxxxx> wrote:



Hi

 

Is there no way to get hold of the connect_options from the mqtt client?

 

When connect is called, one flavour of the function takes an instance of connect_options and it looks like async_client stores this in a private member variable (connOpts_).

 

It would be good to access this information (read only) at some time after connect to find out things like the mqtt version and whether automatic reconnect is enabled etc for the active connection. Also things like the SSL settings and LWT.

 

Gary Metalle
Senior Embedded Software Engineer
   


 

_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/paho-dev


Back to the top