天嵌二次封装库使用手册  V2.1.2
MQTTAsync_successData结构体 参考

#include <MQTTAsync.h>

MQTTAsync_successData 的协作图:

Public 属性

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

详细描述

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

在文件 MQTTAsync.h560 行定义.

类成员变量说明

union { ... } MQTTAsync_successData::alt

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

struct { ... } MQTTAsync_successData::connect
char* MQTTAsync_successData::destinationName

the topic destination for the message

在文件 MQTTAsync.h577 行定义.

MQTTAsync_message MQTTAsync_successData::message

the message being sent to the server

在文件 MQTTAsync.h576 行定义.

int MQTTAsync_successData::MQTTVersion

the version of MQTT being used

在文件 MQTTAsync.h583 行定义.

struct { ... } MQTTAsync_successData::pub

For publish, the message being sent to the server.

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.h569 行定义.

int* MQTTAsync_successData::qosList

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

在文件 MQTTAsync.h572 行定义.

char* MQTTAsync_successData::serverURI

the connection string of the server

在文件 MQTTAsync.h582 行定义.

int MQTTAsync_successData::sessionPresent

the session present flag returned from the server

在文件 MQTTAsync.h584 行定义.

MQTTAsync_token MQTTAsync_successData::token

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

在文件 MQTTAsync.h563 行定义.


该结构体的文档由以下文件生成: