TuyaOS
成员变量
mqtt_msg_t结构体 参考

Definition of mqtt msg to publish 更多...

#include <tuya_svc_mqtt_client.h>

成员变量

CB_MQTT_PUB_INFORM cb_pub_inform
 
VOID * ctx
 
BYTE_T * data
 
UINT_T len
 
CHAR_T * publish_topic
 
BYTE_T qos
 
UINT_T timeout
 

详细描述

Definition of mqtt msg to publish

结构体成员变量说明

◆ cb_pub_inform

CB_MQTT_PUB_INFORM mqtt_msg_t::cb_pub_inform

async callback that indicates QOS1 msg publish success or not.

◆ ctx

VOID* mqtt_msg_t::ctx

private data

◆ data

BYTE_T* mqtt_msg_t::data

buffer of msg content

◆ len

UINT_T mqtt_msg_t::len

length of msg content

◆ publish_topic

CHAR_T* mqtt_msg_t::publish_topic

topic that the msg will be published

◆ qos

BYTE_T mqtt_msg_t::qos

QOS level (only 0 and 1)

◆ timeout

UINT_T mqtt_msg_t::timeout

timeout(unit sec) of QOS-1 ACK, 0 indicates default (QOS1_PUBACK_TIMEOUT)


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