Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] C++ get_client_id()

Hi all,

I am using the mqtt C++ client and looking at async_subscribe.cpp sample. Is there a way to get the client ID using get_client_id() inside the message_arrived function? I need this in my scenario where I have multiple clients subscribing to a topic and I need to perform different tasks based on which client sent the message.

Any other way to approach this problem?

Haider Ali

Back to the top