1
0
mirror of https://github.com/eclipse/paho.mqtt.cpp.git synced 2025-05-09 11:21:24 +08:00

add token::get_message

Signed-off-by: Adam Aposhian <adam.aposhian@fireflyautomatix.com>
This commit is contained in:
Adam Aposhian 2024-02-13 17:14:08 -07:00
parent 2bb54f0e4a
commit 40f29b5c62

View File

@ -420,6 +420,13 @@ public:
* @return The reason code for the operation.
*/
ReasonCode get_reason_code() const { return reasonCode_; }
/**
* Get the error message from the C library
* @return Error message for the operation
*/
string get_message() const { return errMsg_; }
/**
* Blocks the current thread until the action this token is associated
* with has completed.