MQTT C Client Libraries Internals
|
The data returned on completion of a successful API call in the response callback onSuccess. More...
#include <MQTTAsync.h>
Data Fields | |
MQTTAsync_token | token |
A token identifying the successful request. More... | |
union { | |
int qos | |
For subscribe, the granted QoS of the subscription returned by the server. More... | |
int * qosList | |
For subscribeMany, if more than one subscription was requested, the list of granted QoSs of the subscriptions returned by the server. | |
struct { | |
MQTTAsync_message message | |
the message being sent to the server | |
char * destinationName | |
the topic destination for the message | |
} pub | |
For publish, the message being sent to the server. | |
struct { | |
char * serverURI | |
the connection string of the server | |
int MQTTVersion | |
the version of MQTT being used | |
int sessionPresent | |
the session present flag returned from the server | |
} connect | |
} | alt |
A union of the different values that can be returned for subscribe, unsubscribe and publish. | |
The data returned on completion of a successful API call in the response callback onSuccess.
int MQTTAsync_successData::qos |
For subscribe, the granted QoS of the subscription returned by the server.
Also for subscribeMany, if only 1 subscription was requested.
MQTTAsync_token MQTTAsync_successData::token |
A token identifying the successful request.
Can be used to refer to the request later.