TuyaOS
成员变量
mqtt_config结构体 参考

定义了mqtt client创建需要的配置 更多...

#include <mqtt_client.h>

成员变量

size_t cert_len
 
const char * cert_pem
 
const char * client_id
 
uint8_t domain_num
 
char ** domain_tbl
 
bool enable_tls
 
const char * password
 
int port
 
MQ_DATA_RECV_CB recv_cb
 
uint16_t s_alive_time_s
 
uint16_t server_port
 
char * subscribe_topic
 
char * url
 
const char * username
 
uint8_t wakeup_domain_num
 
const char ** wakeup_domain_tbl
 
uint16_t wakeup_serv_port
 

详细描述

定义了mqtt client创建需要的配置

结构体成员变量说明

◆ cert_len

size_t mqtt_config::cert_len

Length of the buffer pointed to by cert_pem. May be 0 for null-terminated pem

◆ cert_pem

const char* mqtt_config::cert_pem

Pointer to certificate data in PEM or DER format for server verify (with SSL), default is NULL, not required to verify the server. PEM-format must have a terminating NULL-character. DER-format requires the length to be passed in cert_len.


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