Link Kit C-SDK
4.0.0
|
#include <aiot_mqtt_api.h>
Public 属性 | |
aiot_mqtt_recv_type_t | type |
MQTT报文类型, 更多信息请参考aiot_mqtt_recv_type_t. 更多... | |
union { | |
struct { | |
uint8_t qos | |
char * topic | |
uint16_t topic_len | |
uint8_t * payload | |
uint32_t payload_len | |
pub_property_t * pub_prop | |
} pub | |
MQTT PUBLISH报文 更多... | |
struct { | |
int32_t res | |
uint8_t max_qos | |
uint16_t packet_id | |
} sub_ack | |
AIOT_MQTTRECV_SUB_ACK. 更多... | |
struct { | |
uint16_t packet_id | |
} unsub_ack | |
AIOT_MQTTRECV_UNSUB_ACK. 更多... | |
struct { | |
uint16_t packet_id | |
} pub_ack | |
AIOT_MQTTRECV_PUB_ACK. 更多... | |
struct { | |
uint8_t reason_code | |
connack_property_t prop | |
} con_ack | |
AIOT_MQTTRECV_CON_ACK. 更多... | |
struct { | |
uint8_t reason_code | |
} server_disconnect | |
AIOT_MQTTRECV_DISCONNECT. MQTT 5.0特性. 更多... | |
} | data |
MQTT报文联合体, 内容根据type进行选择 更多... | |
aiot_mqtt_recv_type_t aiot_mqtt_recv_t::type |
MQTT报文类型, 更多信息请参考aiot_mqtt_recv_type_t.
uint8_t aiot_mqtt_recv_t::qos |
char* aiot_mqtt_recv_t::topic |
uint16_t aiot_mqtt_recv_t::topic_len |
uint8_t* aiot_mqtt_recv_t::payload |
uint32_t aiot_mqtt_recv_t::payload_len |
pub_property_t* aiot_mqtt_recv_t::pub_prop |
struct { ... } aiot_mqtt_recv_t::pub |
MQTT PUBLISH报文
int32_t aiot_mqtt_recv_t::res |
uint8_t aiot_mqtt_recv_t::max_qos |
uint16_t aiot_mqtt_recv_t::packet_id |
struct { ... } aiot_mqtt_recv_t::sub_ack |
AIOT_MQTTRECV_SUB_ACK.
struct { ... } aiot_mqtt_recv_t::unsub_ack |
AIOT_MQTTRECV_UNSUB_ACK.
struct { ... } aiot_mqtt_recv_t::pub_ack |
AIOT_MQTTRECV_PUB_ACK.
uint8_t aiot_mqtt_recv_t::reason_code |
connack_property_t aiot_mqtt_recv_t::prop |
struct { ... } aiot_mqtt_recv_t::con_ack |
AIOT_MQTTRECV_CON_ACK.
struct { ... } aiot_mqtt_recv_t::server_disconnect |
AIOT_MQTTRECV_DISCONNECT. MQTT 5.0特性.
union { ... } aiot_mqtt_recv_t::data |
MQTT报文联合体, 内容根据type进行选择