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

#include <MQTTAsync.h>

MQTTAsync_disconnectOptions 的协作图:

Public 属性

char struct_id [4]
 
int struct_version
 
int timeout
 
MQTTAsync_onSuccess * onSuccess
 
MQTTAsync_onFailure * onFailure
 
void * context
 
MQTTProperties properties
 
enum MQTTReasonCodes reasonCode
 
MQTTAsync_onSuccess5 * onSuccess5
 
MQTTAsync_onFailure5 * onFailure5
 

详细描述

Options for the MQTTAsync_disconnect call

在文件 MQTTAsync.h 第 1394 行定义.

类成员变量说明

void* MQTTAsync_disconnectOptions::context

A pointer to any application-specific context. The the context pointer is passed to success or failure callback functions to provide access to the context information in the callback.

在文件 MQTTAsync.h 第 1422 行定义.

MQTTAsync_onFailure* MQTTAsync_disconnectOptions::onFailure

A pointer to a callback function to be called if the disconnect fails. Can be set to NULL, in which case no indication of unsuccessful completion will be received.

在文件 MQTTAsync.h 第 1416 行定义.

MQTTAsync_onFailure5* MQTTAsync_disconnectOptions::onFailure5

A pointer to a callback function to be called if the disconnect fails. Can be set to NULL, in which case no indication of unsuccessful completion will be received.

在文件 MQTTAsync.h 第 1442 行定义.

MQTTAsync_onSuccess* MQTTAsync_disconnectOptions::onSuccess

A pointer to a callback function to be called if the disconnect successfully completes. Can be set to NULL, in which case no indication of successful completion will be received.

在文件 MQTTAsync.h 第 1410 行定义.

MQTTAsync_onSuccess5* MQTTAsync_disconnectOptions::onSuccess5

A pointer to a callback function to be called if the disconnect successfully completes. Can be set to NULL, in which case no indication of successful completion will be received.

在文件 MQTTAsync.h 第 1436 行定义.

MQTTProperties MQTTAsync_disconnectOptions::properties

MQTT V5 input properties

在文件 MQTTAsync.h 第 1426 行定义.

enum MQTTReasonCodes MQTTAsync_disconnectOptions::reasonCode

Reason code for MQTTV5 disconnect

在文件 MQTTAsync.h 第 1430 行定义.

char MQTTAsync_disconnectOptions::struct_id[4]

The eyecatcher for this structure. Must be MQTD.

在文件 MQTTAsync.h 第 1397 行定义.

int MQTTAsync_disconnectOptions::struct_version

The version number of this structure. Must be 0 or 1. 0 signifies no V5 properties

在文件 MQTTAsync.h 第 1399 行定义.

int MQTTAsync_disconnectOptions::timeout

The client delays disconnection for up to this time (in milliseconds) in order to allow in-flight message transfers to complete.

在文件 MQTTAsync.h 第 1404 行定义.


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