|
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) |
|
static void | _core_mqtt_remain_len_encode (uint32_t input, uint8_t *output, uint32_t *output_idx) |
|
static int32_t | _core_mqtt_general_property_is_valid (general_property_t *general_property) |
|
uint32_t | _core_get_general_property_len (general_property_t *general_prop) |
|
void | _core_write_general_prop (uint8_t *pos, uint32_t *index, general_property_t *general_property, uint8_t *property_len_array, uint8_t property_len_offset) |
|
static int32_t | _read_variable_byte_interger (uint8_t *input, uint32_t *remainlen, uint8_t *offset) |
|
static int32_t | _core_mqtt_conn_pkt (core_mqtt_handle_t *mqtt_handle, uint8_t **pkt, uint32_t *pkt_len, conn_property_t *conn_prop) |
|
static int32_t | _core_mqtt_parse_property_element (core_mqtt_handle_t *mqtt_handle, uint8_t *property, uint32_t *idx, type_len_value_t *tlv, user_property_t *user_prop, uint32_t *variable_byte_integer) |
|
static int32_t | _core_mqtt_parse_general_properties (core_mqtt_handle_t *mqtt_handle, uint8_t *property, general_property_t *general_prop, uint32_t *parsed_property_len, uint8_t *parsed_offset, uint32_t remain_len) |
|
static int32_t | _core_mqtt_parse_conack_properties (core_mqtt_handle_t *mqtt_handle, uint8_t *property, connack_property_t *conack_prop, uint32_t remain_len) |
|
static void | _core_reclaim_user_properties_mem (core_mqtt_handle_t *mqtt_handle, user_property_t **user_property_list) |
|
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, conn_property_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, uint8_t qos, uint8_t pkt_type, general_property_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) |
|
static 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) |
|
static int32_t | _core_mqtt_parse_pub_properties (core_mqtt_handle_t *mqtt_handle, uint8_t *property, pub_property_t *pub_prop, uint32_t *parsed_property_len, uint8_t *parsed_offset, uint32_t remain_len) |
|
uint8_t | _core_mqtt_process_topic_alias (core_mqtt_handle_t *mqtt_handle, pub_property_t *pub_prop, uint32_t topic_len, char *topic, core_mqtt_topic_alias_node_t *alias_node) |
|
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, conn_property_t *connect_property) |
|
int32_t | aiot_mqtt_connect (void *handle) |
| 与MQTT服务器建立连接 更多...
|
|
int32_t | aiot_mqtt_connect_with_prop (void *handle, conn_property_t *connect_property) |
| 与MQTT服务器建立连接. 以MQTT 5.0协议的方式接入, 支持5.0的特性. 在调用这个接口前, 需要确保已经通过AIOT_MQTTOPT_VERSION的方式, 设置过版本号为AIOT_MQTT_VERSION_5_0 更多...
|
|
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, pub_property_t *pub_prop) |
|
int32_t | _core_mqtt_disconnect_with_prop (void *handle, uint8_t reason_code, disconn_property_t *discon_property) |
|
int32_t | aiot_mqtt_disconnect_with_prop (void *handle, uint8_t reason_code, disconn_property_t *discon_property) |
| 与MQTT服务器断开连接 以MQTT 5.0协议的方式接入, 支持5.0的特性. 在调用这个接口前, 需要确保已经通过AIOT_MQTTOPT_VERSION的方式, 设置过版本号为AIOT_MQTT_VERSION_5_0 更多...
|
|
static int32_t | _mqtt_pub_with_prop (void *handle, char *topic, uint8_t *payload, uint32_t payload_len, uint8_t qos, pub_property_t *pub_prop) |
|
int32_t | aiot_mqtt_pub_with_prop (void *handle, char *topic, uint8_t *payload, uint32_t payload_len, uint8_t qos, pub_property_t *pub_prop) |
| 发送一条PUBLISH报文到MQTT服务器, QoS为0, 用于发布指定的消息 以MQTT 5.0协议的方式接入, 支持5.0的特性. 在调用这个接口前, 需要确保已经通过AIOT_MQTTOPT_VERSION的方式, 设置过版本号为AIOT_MQTT_VERSION_5_0 更多...
|
|
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, uint8_t qos, void *userdata, sub_property_t *sub_prop) |
|
static int32_t | _mqtt_sub_with_prop (void *handle, char *topic, aiot_mqtt_recv_handler_t handler, uint8_t qos, void *userdata, sub_property_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 更多...
|
|
int32_t | aiot_mqtt_sub_with_prop (void *handle, char *topic, aiot_mqtt_recv_handler_t handler, uint8_t qos, void *userdata, sub_property_t *sub_prop) |
| 发送一条mqtt SUBSCRIBE报文到MQTT服务器, 用于订阅指定的topic 以MQTT 5.0协议的方式接入, 支持5.0的特性. 在调用这个接口前, 需要确保已经通过AIOT_MQTTOPT_VERSION的方式, 设置过版本号为AIOT_MQTT_VERSION_5_0 更多...
|
|
static int32_t | _core_mqtt_unsub (void *handle, core_mqtt_buff_t *topic, unsub_property_t *unsub_prop) |
|
static int32_t | _mqtt_unsub (void *handle, char *topic, unsub_property_t *unsub_prop) |
|
int32_t | aiot_mqtt_unsub (void *handle, char *topic) |
| 发送一条mqtt UNSUBSCRIBE报文到MQTT服务器, 用于取消订阅指定的topic 更多...
|
|
int32_t | aiot_mqtt_unsub_with_prop (void *handle, char *topic, unsub_property_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) |
|