天嵌二次封装库使用手册
V2.1.2
|
#include <MQTTAsync.h>
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.h 第 591 行定义.
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.h 第 612 行定义.
MQTTAsync_message MQTTAsync_successData5::message |
the message being sent to the server
在文件 MQTTAsync.h 第 611 行定义.
int MQTTAsync_successData5::MQTTVersion |
the version of MQTT being used
在文件 MQTTAsync.h 第 618 行定义.
MQTTProperties MQTTAsync_successData5::properties |
MQTT V5 properties returned, if any
在文件 MQTTAsync.h 第 598 行定义.
struct { ... } MQTTAsync_successData5::pub |
For publish, the message being sent to the server.
enum MQTTReasonCodes MQTTAsync_successData5::reasonCode |
MQTT V5 reason code returned
在文件 MQTTAsync.h 第 597 行定义.
int MQTTAsync_successData5::reasonCodeCount |
the number of reason codes in the reasonCodes array
在文件 MQTTAsync.h 第 605 行定义.
enum MQTTReasonCodes* MQTTAsync_successData5::reasonCodes |
an array of reasonCodes
在文件 MQTTAsync.h 第 606 行定义.
char* MQTTAsync_successData5::serverURI |
the connection string of the server
在文件 MQTTAsync.h 第 617 行定义.
int MQTTAsync_successData5::sessionPresent |
the session present flag returned from the server
在文件 MQTTAsync.h 第 619 行定义.
char MQTTAsync_successData5::struct_id[4] |
The eyecatcher for this structure. Will be MQSD.
在文件 MQTTAsync.h 第 593 行定义.
int MQTTAsync_successData5::struct_version |
The version number of this structure. Will be 0
在文件 MQTTAsync.h 第 594 行定义.
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.h 第 596 行定义.
struct { ... } MQTTAsync_successData5::unsub |
For unsubscribeMany, the list of reasonCodes returned by the server.