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

#include <MQTTAsync.h>

MQTTAsync_successData5 的协作图:

Public 属性

char struct_id [4]
 
int struct_version
 
MQTTAsync_token token
 
enum MQTTReasonCodes reasonCode
 
MQTTProperties properties
 
union {
   struct {
      int   reasonCodeCount
 
      enum MQTTReasonCodes *   reasonCodes
 
   }   sub
 
   struct {
      MQTTAsync_message   message
 
      char *   destinationName
 
   }   pub
 
   struct {
      char *   serverURI
 
      int   MQTTVersion
 
      int   sessionPresent
 
   }   connect
 
   struct {
      int   reasonCodeCount
 
      enum MQTTReasonCodes *   reasonCodes
 
   }   unsub
 
alt
 

详细描述

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

在文件 MQTTAsync.h591 行定义.

类成员变量说明

union { ... } MQTTAsync_successData5::alt

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

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

the topic destination for the message

在文件 MQTTAsync.h612 行定义.

MQTTAsync_message MQTTAsync_successData5::message

the message being sent to the server

在文件 MQTTAsync.h611 行定义.

int MQTTAsync_successData5::MQTTVersion

the version of MQTT being used

在文件 MQTTAsync.h618 行定义.

MQTTProperties MQTTAsync_successData5::properties

MQTT V5 properties returned, if any

在文件 MQTTAsync.h598 行定义.

struct { ... } MQTTAsync_successData5::pub

For publish, the message being sent to the server.

enum MQTTReasonCodes MQTTAsync_successData5::reasonCode

MQTT V5 reason code returned

在文件 MQTTAsync.h597 行定义.

int MQTTAsync_successData5::reasonCodeCount

the number of reason codes in the reasonCodes array

在文件 MQTTAsync.h605 行定义.

enum MQTTReasonCodes* MQTTAsync_successData5::reasonCodes

an array of reasonCodes

在文件 MQTTAsync.h606 行定义.

char* MQTTAsync_successData5::serverURI

the connection string of the server

在文件 MQTTAsync.h617 行定义.

int MQTTAsync_successData5::sessionPresent

the session present flag returned from the server

在文件 MQTTAsync.h619 行定义.

char MQTTAsync_successData5::struct_id[4]

The eyecatcher for this structure. Will be MQSD.

在文件 MQTTAsync.h593 行定义.

int MQTTAsync_successData5::struct_version

The version number of this structure. Will be 0

在文件 MQTTAsync.h594 行定义.

struct { ... } MQTTAsync_successData5::sub

For subscribeMany, the list of reasonCodes returned by the server.

MQTTAsync_token MQTTAsync_successData5::token

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

在文件 MQTTAsync.h596 行定义.

struct { ... } MQTTAsync_successData5::unsub

For unsubscribeMany, the list of reasonCodes returned by the server.


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