|
static int32_t | _core_mqtt_sysdep_return (int32_t sysdep_code, int32_t core_code) |
|
static int32_t | _core_mqtt_5_feature_is_enabled (core_mqtt_handle_t *mqtt_handle) |
|
static void | _core_mqtt_event_notify_process_handler (core_mqtt_handle_t *mqtt_handle, aiot_mqtt_event_t *event, core_mqtt_event_t *core_event) |
|
static void | _core_mqtt_event_notify (core_mqtt_handle_t *mqtt_handle, aiot_mqtt_event_type_t type) |
|
static void | _core_mqtt_connect_event_notify (core_mqtt_handle_t *mqtt_handle) |
|
static void | _core_mqtt_disconnect_event_notify (core_mqtt_handle_t *mqtt_handle, aiot_mqtt_disconnect_event_type_t disconnect) |
|
static void | _core_mqtt_exec_inc (core_mqtt_handle_t *mqtt_handle) |
|
static void | _core_mqtt_exec_dec (core_mqtt_handle_t *mqtt_handle) |
|
static void | _core_mqtt_sign_clean (core_mqtt_handle_t *mqtt_handle) |
|
static int32_t | _core_mqtt_handlerlist_insert (core_mqtt_handle_t *mqtt_handle, core_mqtt_sub_node_t *sub_node, aiot_mqtt_recv_handler_t handler, void *userdata) |
|
static int32_t | _core_mqtt_sublist_insert (core_mqtt_handle_t *mqtt_handle, core_mqtt_buff_t *topic, aiot_mqtt_recv_handler_t handler, void *userdata) |
|
static int32_t | _core_mqtt_topic_alias_list_insert (core_mqtt_handle_t *mqtt_handle, core_mqtt_buff_t *topic, uint16_t topic_alias, struct core_list_head *list) |
|
static void | _core_mqtt_topic_alias_list_remove_all (core_mqtt_handle_t *mqtt_handle) |
|
static void | _core_mqtt_sublist_handlerlist_destroy (core_mqtt_handle_t *mqtt_handle, struct core_list_head *list) |
|
static void | _core_mqtt_sublist_remove (core_mqtt_handle_t *mqtt_handle, core_mqtt_buff_t *topic) |
|
static void | _core_mqtt_sublist_remove_handler (core_mqtt_handle_t *mqtt_handle, core_mqtt_buff_t *topic, aiot_mqtt_recv_handler_t handler) |
|
static void | _core_mqtt_sublist_destroy (core_mqtt_handle_t *mqtt_handle) |
|
static int32_t | _core_mqtt_topic_is_valid (char *topic, uint32_t len) |
|
static int32_t | _core_mqtt_append_topic_map (core_mqtt_handle_t *mqtt_handle, aiot_mqtt_topic_map_t *map) |
|
static int32_t | _core_mqtt_remove_topic_map (core_mqtt_handle_t *mqtt_handle, aiot_mqtt_topic_map_t *map) |
|
static void | _core_mqtt_set_utf8_encoded_str (uint8_t *input, uint16_t input_len, uint8_t *output) |
|
int32_t | _write_variable (uint32_t input, uint8_t *output) |
|
int32_t | _read_variable (uint8_t *input, uint32_t *output) |
|
static int32_t | _core_mqtt_conn_pkt (core_mqtt_handle_t *mqtt_handle, uint8_t **pkt, uint32_t *pkt_len, will_message_t *will_message, mqtt_properties_t *conn_prop) |
|
static int32_t | _core_mqtt_update_connack_props (core_mqtt_handle_t *mqtt_handle, mqtt_properties_t *props) |
|
static int32_t | _core_mqtt_connack_handle (core_mqtt_handle_t *mqtt_handle, uint8_t *connack, uint32_t remain_len) |
|
static int32_t | _core_mqtt_read (core_mqtt_handle_t *mqtt_handle, uint8_t *buffer, uint32_t len, uint32_t timeout_ms) |
|
static int32_t | _core_mqtt_write (core_mqtt_handle_t *mqtt_handle, uint8_t *buffer, uint32_t len, uint32_t timeout_ms) |
|
static void | _core_mqtt_connect_diag (core_mqtt_handle_t *mqtt_handle, uint8_t flag) |
|
static void | _core_mqtt_heartbeat_diag (core_mqtt_handle_t *mqtt_handle, uint8_t flag) |
|
static int32_t | _core_mqtt_read_remainlen (core_mqtt_handle_t *mqtt_handle, uint32_t *remainlen) |
|
static int32_t | _core_mqtt_add_extend_clientid (core_mqtt_handle_t *channel_handle, char **dst_clientid, char *extend) |
|
static int32_t | _core_mqtt_add_netstats_extend (core_mqtt_handle_t *mqtt_handle, char **dst_clientid) |
|
static int32_t | _core_mqtt_connect (core_mqtt_handle_t *mqtt_handle, will_message_t *will_message, mqtt_properties_t *conn_prop) |
|
static int32_t | _core_mqtt_disconnect (core_mqtt_handle_t *mqtt_handle) |
|
static uint16_t | _core_mqtt_packet_id (core_mqtt_handle_t *mqtt_handle) |
|
static int32_t | _core_mqtt_publist_insert (core_mqtt_handle_t *mqtt_handle, uint8_t *packet, uint32_t len, uint16_t packet_id) |
|
static void | _core_mqtt_publist_remove (core_mqtt_handle_t *mqtt_handle, uint16_t packet_id) |
|
static void | _core_mqtt_publist_destroy (core_mqtt_handle_t *mqtt_handle) |
|
static int32_t | _core_mqtt_subunsub (core_mqtt_handle_t *mqtt_handle, char *topic, uint16_t topic_len, sub_options_t *opts, uint8_t pkt_type, mqtt_properties_t *general_property) |
|
static int32_t | _core_mqtt_heartbeat (core_mqtt_handle_t *mqtt_handle) |
|
static int32_t | _core_mqtt_repub (core_mqtt_handle_t *mqtt_handle) |
|
static int32_t | _core_mqtt_process_datalist_insert (core_mqtt_handle_t *mqtt_handle, core_mqtt_process_data_t *process_data) |
|
static void | _core_mqtt_process_datalist_remove (core_mqtt_handle_t *mqtt_handle, core_mqtt_process_data_t *process_data) |
|
static void | _core_mqtt_process_datalist_destroy (core_mqtt_handle_t *mqtt_handle) |
|
static int32_t | _core_mqtt_append_process_data (core_mqtt_handle_t *mqtt_handle, core_mqtt_process_data_t *process_data) |
|
static int32_t | _core_mqtt_remove_process_data (core_mqtt_handle_t *mqtt_handle, core_mqtt_process_data_t *process_data) |
|
static void | _core_mqtt_process_data_process (core_mqtt_handle_t *mqtt_handle, core_mqtt_event_t *core_event) |
|
static int32_t | _core_mqtt_reconnect (core_mqtt_handle_t *mqtt_handle) |
|
static int32_t | _core_mqtt_read_remainbytes (core_mqtt_handle_t *mqtt_handle, uint32_t remainlen, uint8_t **output) |
|
static int32_t | _core_mqtt_pingresp_handler (core_mqtt_handle_t *mqtt_handle, uint8_t *input, uint32_t len) |
|
static int32_t | _core_mqtt_puback_send (core_mqtt_handle_t *mqtt_handle, uint16_t packet_id) |
|
int32_t | _core_mqtt_topic_compare (char *topic, uint32_t topic_len, char *cmp_topic, uint32_t cmp_topic_len) |
|
static void | _core_mqtt_handlerlist_append (core_mqtt_handle_t *mqtt_handle, struct core_list_head *dest, struct core_list_head *src, uint8_t *found) |
|
static void | _core_mqtt_handlerlist_destroy (core_mqtt_handle_t *mqtt_handle, struct core_list_head *list) |
|
uint8_t | _core_mqtt_process_topic_alias (core_mqtt_handle_t *mqtt_handle, uint16_t topic_alias, uint32_t topic_len, char *topic, core_mqtt_topic_alias_node_t *alias_node) |
|
static void | _core_mqtt_call_user_handler (core_mqtt_handle_t *mqtt_handle, core_mqtt_msg_t msg, uint8_t qos, mqtt_properties_t *pub_prop) |
|
static int32_t | _core_mqtt_pub_handler (core_mqtt_handle_t *mqtt_handle, uint8_t *input, uint32_t len, uint8_t qos, uint32_t remain_len) |
|
void | _core_mqtt_flow_control_inc (core_mqtt_handle_t *mqtt_handle) |
|
static int32_t | _core_mqtt_puback_handler (core_mqtt_handle_t *mqtt_handle, uint8_t *input, uint32_t len) |
|
static int32_t | _core_mqtt_server_disconnect_handler (core_mqtt_handle_t *mqtt_handle, uint8_t *input, uint32_t len) |
|
static void | _core_mqtt_subunsuback_handler (core_mqtt_handle_t *mqtt_handle, uint8_t *input, uint32_t len, uint8_t packet_type) |
|
int32_t | core_mqtt_setopt (void *handle, core_mqtt_option_t option, void *data) |
|
void * | aiot_mqtt_init (void) |
| 初始化mqtt实例并设置默认参数 更多...
|
|
int32_t | aiot_mqtt_setopt (void *handle, aiot_mqtt_option_t option, void *data) |
| 设置mqtt参数 更多...
|
|
int32_t | aiot_mqtt_deinit (void **handle) |
| 释放mqtt实例句柄的资源 更多...
|
|
static int32_t | _mqtt_connect_with_prop (void *handle, will_message_t *will_message, mqtt_properties_t *connect_property) |
|
int32_t | aiot_mqtt_connect (void *handle) |
| 与MQTT服务器建立连接 更多...
|
|
int32_t | aiot_mqtt_disconnect (void *handle) |
| 与MQTT服务器断开连接 更多...
|
|
int32_t | aiot_mqtt_heartbeat (void *handle) |
| 发送MQTT PINGREQ报文, 用于维持心跳 更多...
|
|
int32_t | aiot_mqtt_process (void *handle) |
| 此函数用于处理定时心跳发送和qos1消息的重传逻辑 更多...
|
|
static int32_t | _core_mqtt_tx_topic_alias_process (core_mqtt_handle_t *mqtt_handle, core_mqtt_buff_t *topic, uint16_t *alias_id_prt) |
|
static int32_t | _core_mqtt_check_flow_control (core_mqtt_handle_t *mqtt_handle, uint8_t qos) |
|
static void | _core_mqtt_check_flow_dec (core_mqtt_handle_t *mqtt_handle) |
|
static int32_t | _core_mqtt_check_tx_payload_len (uint32_t pkt_len, core_mqtt_handle_t *mqtt_handle) |
|
static int32_t | _core_mqtt_pub (void *handle, core_mqtt_buff_t *topic, core_mqtt_buff_t *payload, uint8_t qos, uint8_t retain, mqtt_properties_t *pub_prop) |
|
int32_t | _core_mqtt_disconnect_with_prop (void *handle, uint8_t reason_code, mqtt_properties_t *discon_property) |
|
int32_t | aiot_mqtt_disconnect_v5 (void *handle, uint8_t reason_code, mqtt_properties_t *discon_property) |
| 与MQTT服务器断开连接 以MQTT 5.0协议的方式接入, 支持5.0的特性. 在调用这个接口前, 需要确保已经通过AIOT_MQTTOPT_VERSION的方式, 设置过版本号为AIOT_MQTT_VERSION_5_0 更多...
|
|
static int32_t | _core_mqtt_pub_params_check (void *handle, char *topic, uint8_t *payload, uint32_t payload_len, uint8_t qos, uint8_t retain) |
|
int32_t | _core_mqtt_append_rid (core_mqtt_handle_t *mqtt_handle, char *topic, char **new_topic) |
|
int32_t | _core_mqtt_compress (core_mqtt_handle_t *mqtt_handle, char *topic, uint8_t *payload, uint32_t payload_len, core_mqtt_msg_t *msg) |
|
int32_t | _mqtt_pub_with_prop (void *handle, char *topic, uint8_t *payload, uint32_t payload_len, uint8_t qos, uint8_t retain, mqtt_properties_t *pub_prop) |
|
int32_t | aiot_mqtt_pub (void *handle, char *topic, uint8_t *payload, uint32_t payload_len, uint8_t qos) |
| 发送一条PUBLISH报文到MQTT服务器, QoS为0, 用于发布指定的消息 更多...
|
|
static int32_t | _core_mqtt_sub (void *handle, core_mqtt_buff_t *topic, aiot_mqtt_recv_handler_t handler, sub_options_t *opts, void *userdata, mqtt_properties_t *sub_prop) |
|
static int32_t | _mqtt_sub_with_prop (void *handle, char *topic, aiot_mqtt_recv_handler_t handler, sub_options_t *opts, void *userdata, mqtt_properties_t *sub_prop) |
|
int32_t | aiot_mqtt_sub (void *handle, char *topic, aiot_mqtt_recv_handler_t handler, uint8_t qos, void *userdata) |
| 发送一条mqtt SUBSCRIBE报文到MQTT服务器, 用于订阅指定的topic 更多...
|
|
static int32_t | _core_mqtt_unsub (void *handle, core_mqtt_buff_t *topic, mqtt_properties_t *unsub_prop) |
|
static int32_t | _mqtt_unsub (void *handle, char *topic, mqtt_properties_t *unsub_prop) |
|
int32_t | aiot_mqtt_unsub (void *handle, char *topic) |
| 发送一条mqtt UNSUBSCRIBE报文到MQTT服务器, 用于取消订阅指定的topic 更多...
|
|
int32_t | aiot_mqtt_unsub_v5 (void *handle, char *topic, mqtt_properties_t *unsub_prop) |
| 发送一条mqtt UNSUBSCRIBE报文到MQTT服务器, 用于取消订阅指定的topic 以MQTT 5.0协议的方式接入, 支持5.0的特性. 在调用这个接口前, 需要确保已经通过AIOT_MQTTOPT_VERSION的方式, 设置过版本号为AIOT_MQTT_VERSION_5_0 更多...
|
|
int32_t | aiot_mqtt_recv (void *handle) |
| 尝试从网络上接收MQTT报文 更多...
|
|
char * | core_mqtt_get_product_key (void *handle) |
|
char * | core_mqtt_get_device_name (void *handle) |
|
uint16_t | core_mqtt_get_port (void *handle) |
|
int32_t | core_mqtt_get_nwkstats (void *handle, core_mqtt_nwkstats_info_t *nwk_stats_info) |
|
int32_t | aiot_mqtt_pub_v5 (void *handle, char *topic, uint8_t *payload, uint32_t payload_len, uint8_t qos, uint8_t retain, mqtt_properties_t *pub_prop) |
| 发送一条PUBLISH报文到MQTT服务器, QoS为0, 用于发布指定的消息 以MQTT 5.0协议的方式接入, 支持5.0的特性. 在调用这个接口前, 需要确保已经通过AIOT_MQTTOPT_VERSION的方式, 设置过版本号为AIOT_MQTT_VERSION_5_0 更多...
|
|
int32_t | aiot_mqtt_sub_v5 (void *handle, char *topic, sub_options_t *opts, aiot_mqtt_recv_handler_t handler, void *userdata, mqtt_properties_t *sub_prop) |
| 发送一条mqtt SUBSCRIBE报文到MQTT服务器, 用于订阅指定的topic 以MQTT 5.0协议的方式接入, 支持5.0的特性. 在调用这个接口前, 需要确保已经通过AIOT_MQTTOPT_VERSION的方式, 设置过版本号为AIOT_MQTT_VERSION_5_0 更多...
|
|
int32_t | _core_will_message_check (will_message_t *will_message) |
|
int32_t | aiot_mqtt_connect_v5 (void *handle, will_message_t *will_message, mqtt_properties_t *conn_prop) |
| 与MQTT服务器建立连接. 以MQTT 5.0协议的方式接入, 支持5.0的特性. 在调用这个接口前, 需要确保已经通过AIOT_MQTTOPT_VERSION的方式, 设置过版本号为AIOT_MQTT_VERSION_5_0 更多...
|
|