天嵌二次封装库使用手册
V2.1.2
|
#include <MQTTAsync.h>
Public 属性 | |
char | struct_id [4] |
int | struct_version |
int | sendWhileDisconnected |
int | maxBufferedMessages |
int | MQTTVersion |
int | allowDisconnectedSendAtAnyTime |
int | deleteOldestMessages |
int | restoreMessages |
int | persistQoS0 |
Options for the MQTTAsync_createWithOptions call
在文件 MQTTAsync.h 第 941 行定义.
int MQTTAsync_createOptions::allowDisconnectedSendAtAnyTime |
Allow sending of messages while disconnected before a first successful connect.
在文件 MQTTAsync.h 第 964 行定义.
int MQTTAsync_createOptions::deleteOldestMessages |
在文件 MQTTAsync.h 第 968 行定义.
int MQTTAsync_createOptions::maxBufferedMessages |
The maximum number of messages allowed to be buffered while not connected.
在文件 MQTTAsync.h 第 954 行定义.
int MQTTAsync_createOptions::MQTTVersion |
Whether the MQTT version is 3.1, 3.1.1, or 5. To use V5, this must be set. MQTT V5 has to be chosen here, because during the create call the message persistence is initialized, and we want to know whether the format of any persisted messages is appropriate for the MQTT version we are going to connect with. Selecting 3.1 or 3.1.1 and attempting to read 5.0 persisted messages will result in an error on create.
在文件 MQTTAsync.h 第 960 行定义.
int MQTTAsync_createOptions::persistQoS0 |
在文件 MQTTAsync.h 第 976 行定义.
int MQTTAsync_createOptions::restoreMessages |
在文件 MQTTAsync.h 第 972 行定义.
int MQTTAsync_createOptions::sendWhileDisconnected |
Whether to allow messages to be sent when the client library is not connected.
在文件 MQTTAsync.h 第 952 行定义.
char MQTTAsync_createOptions::struct_id[4] |
The eyecatcher for this structure. must be MQCO.
在文件 MQTTAsync.h 第 944 行定义.
int MQTTAsync_createOptions::struct_version |
The version number of this structure. Must be 0, 1, 2 or 3 0 means no MQTTVersion 1 means no allowDisconnectedSendAtAnyTime, deleteOldestMessages, restoreMessages 2 means no persistQoS0
在文件 MQTTAsync.h 第 950 行定义.