| Paho Asynchronous MQTT C Client Library

Loading...
Searching...
No Matches
Data Fields
MQTTAsync_successData Struct Reference

`#include <MQTTAsync.h>`

## Data Fields
MQTTAsync_token | token
union { |
int qos |
int * qosList |
struct { |
MQTTAsync_message message |
char * destinationName |
} pub
struct { |
char * serverURI |
int MQTTVersion |
int sessionPresent |
} connect
} | alt

## Detailed Description

The data returned on completion of a successful API call in the response callback onSuccess.

## Field Documentation

## ◆ token

MQTTAsync_token token

A token identifying the successful request. Can be used to refer to the request later.

## ◆ qos

int qos

For subscribe, the granted QoS of the subscription returned by the server. Also for subscribeMany, if only 1 subscription was requested.

## ◆ qosList

int* qosList

For subscribeMany, if more than one subscription was requested, the list of granted QoSs of the subscriptions returned by the server.

## ◆ message

MQTTAsync_message message

the message being sent to the server

## ◆ destinationName

char* destinationName

the topic destination for the message

## ◆ [struct]

struct { ... } pub

For publish, the message being sent to the server.

## ◆ serverURI

char* serverURI

the connection string of the server

## ◆ MQTTVersion

int MQTTVersion

the version of MQTT being used

## ◆ sessionPresent

int sessionPresent

the session present flag returned from the server

## ◆ [struct]

struct { ... } connect

## ◆ [union]

union { ... } alt

A union of the different values that can be returned for subscribe, unsubscribe and publish.

The documentation for this struct was generated from the following file:

- MQTTAsync.h