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

#include <MQTTClient.h>

Public 属性

char struct_id [4]
 
int struct_version
 
int MQTTVersion
 

详细描述

Options for the MQTTClient_createWithOptions call

在文件 MQTTClient.h536 行定义.

类成员变量说明

int MQTTClient_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.

在文件 MQTTClient.h547 行定义.

char MQTTClient_createOptions::struct_id[4]

The eyecatcher for this structure. must be MQCO.

在文件 MQTTClient.h539 行定义.

int MQTTClient_createOptions::struct_version

The version number of this structure. Must be 0

在文件 MQTTClient.h541 行定义.


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