天嵌二次封装库使用手册
V2.1.2
|
#include <MQTTAsync.h>
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.h 第 560 行定义.
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.h 第 577 行定义.
MQTTAsync_message MQTTAsync_successData::message |
the message being sent to the server
在文件 MQTTAsync.h 第 576 行定义.
int MQTTAsync_successData::MQTTVersion |
the version of MQTT being used
在文件 MQTTAsync.h 第 583 行定义.
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.h 第 569 行定义.
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.h 第 572 行定义.
char* MQTTAsync_successData::serverURI |
the connection string of the server
在文件 MQTTAsync.h 第 582 行定义.
int MQTTAsync_successData::sessionPresent |
the session present flag returned from the server
在文件 MQTTAsync.h 第 584 行定义.
MQTTAsync_token MQTTAsync_successData::token |
A token identifying the successful request. Can be used to refer to the request later.
在文件 MQTTAsync.h 第 563 行定义.