|
TuyaOS
|
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_MQTT_PUB_INFORM mqtt_msg_t::cb_pub_inform |
async callback that indicates QOS1 msg publish success or not.
| VOID* mqtt_msg_t::ctx |
private data
| BYTE_T* mqtt_msg_t::data |
buffer of msg content
| UINT_T mqtt_msg_t::len |
length of msg content
| CHAR_T* mqtt_msg_t::publish_topic |
topic that the msg will be published
| BYTE_T mqtt_msg_t::qos |
QOS level (only 0 and 1)
| UINT_T mqtt_msg_t::timeout |
timeout(unit sec) of QOS-1 ACK, 0 indicates default (QOS1_PUBACK_TIMEOUT)