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

#include <MQTTAsync.h>

MQTTAsync_responseOptions 的协作图:

Public 属性

char struct_id [4]
 
int struct_version
 
MQTTAsync_onSuccessonSuccess
 
MQTTAsync_onFailureonFailure
 
void * context
 
MQTTAsync_token token
 
MQTTAsync_onSuccess5onSuccess5
 
MQTTAsync_onFailure5onFailure5
 
MQTTProperties properties
 
MQTTSubscribe_options subscribeOptions
 
int subscribeOptionsCount
 
MQTTSubscribe_optionssubscribeOptionsList
 

详细描述

Structure to define call options. For MQTT 5.0 there is input data as well as that describing the response method. So there is now also a synonym MQTTAsync_callOptions to better reflect the use. This responseOptions name is kept for backward compatibility.

在文件 MQTTAsync.h698 行定义.

类成员变量说明

void* MQTTAsync_responseOptions::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.h722 行定义.

MQTTAsync_onFailure* MQTTAsync_responseOptions::onFailure

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

在文件 MQTTAsync.h716 行定义.

MQTTAsync_onFailure5* MQTTAsync_responseOptions::onFailure5

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

在文件 MQTTAsync.h740 行定义.

MQTTAsync_onSuccess* MQTTAsync_responseOptions::onSuccess

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

在文件 MQTTAsync.h710 行定义.

MQTTAsync_onSuccess5* MQTTAsync_responseOptions::onSuccess5

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

在文件 MQTTAsync.h734 行定义.

MQTTProperties MQTTAsync_responseOptions::properties

MQTT V5 input properties

在文件 MQTTAsync.h744 行定义.

char MQTTAsync_responseOptions::struct_id[4]

The eyecatcher for this structure. Must be MQTR

在文件 MQTTAsync.h701 行定义.

int MQTTAsync_responseOptions::struct_version

The version number of this structure. Must be 0 or 1 if 0, no MQTTV5 options

在文件 MQTTAsync.h704 行定义.

MQTTSubscribe_options MQTTAsync_responseOptions::subscribeOptions

在文件 MQTTAsync.h748 行定义.

int MQTTAsync_responseOptions::subscribeOptionsCount

在文件 MQTTAsync.h753 行定义.

MQTTSubscribe_options* MQTTAsync_responseOptions::subscribeOptionsList

在文件 MQTTAsync.h757 行定义.

MQTTAsync_token MQTTAsync_responseOptions::token

A token is returned from the call. It can be used to track the state of this request, both in the callbacks and in future calls such as MQTTAsync_waitForCompletion.

在文件 MQTTAsync.h728 行定义.


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