![]() |
paho-mqtt-cpp
MQTT C++ Client for POSIX and Windows
|
#include <server_response.h>
Public Member Functions | |
subscribe_response (MQTTAsync_successData5 *rsp) | |
subscribe_response (size_t n, MQTTAsync_successData *rsp) | |
const std::vector< ReasonCode > & | get_reason_codes () const |
![]() | |
server_response () | |
server_response (const properties &props) | |
server_response (properties &&props) | |
virtual | ~server_response () |
const properties & | get_properties () const |
Data Fields | |
std::vector< ReasonCode > | reasonCodes_ |
Friends | |
class | token |
Response for subscribe messages
|
inline |
Create v5 subscribe response.
rsp | The v5 response struct from the C lib |
|
inline |
Create v3 subscribe response.
n | The number of subscription topics |
rsp | The v3 response struct from the C lib |
|
inline |
Gets the reason codes from the server response. On a subscribe ack there is a reason code for each topic that was sent in the subscribe packet. Each tells the granted QoS for the corresponding topic.
|
friend |
std::vector<ReasonCode> mqtt::subscribe_response::reasonCodes_ |
The reason/result code for each topic request.