|
static int32_t | _mqtt_upload_filelist_insert (mqtt_upload_handle_t *up_handle, upload_file_task_handle_t *up_task) |
|
static void | _mqtt_upload_filelist_destroy (mqtt_upload_handle_t *up_handle) |
|
static int32_t | _mqtt_upload_resend_pub (mqtt_upload_handle_t *up_handle, upload_file_task_handle_t *up_task) |
|
static void | _mqtt_upload_up_task_free (aiot_sysdep_portfile_t *sysdep, upload_file_task_handle_t *up_task) |
|
static void | _mqtt_upload_receive_init_response_handler (void *handle, const aiot_mqtt_recv_t *const packet, void *userdata) |
|
static void | _mqtt_upload_receive_upload_response_handler (void *handle, const aiot_mqtt_recv_t *const packet, void *userdata) |
|
static void | _mqtt_upload_receive_cancel_response_handler (void *handle, const aiot_mqtt_recv_t *const packet, void *userdata) |
|
static uint16_t | crc_ibm (uint8_t const *buffer, size_t len) |
|
static int32_t | _mqtt_upload_get_payload (aiot_sysdep_portfile_t *sysdep, char *params, char **out) |
|
static int32_t | _mqtt_upload_get_topic (mqtt_upload_handle_t *up_handle, char **topic, char *fmt) |
|
static int32_t | _mqtt_upload_data_encode_package (uint8_t *data, uint32_t data_len, char *head_payload, uint8_t *payload) |
|
static int32_t | _mqtt_upload_creat_string_malloc (aiot_sysdep_portfile_t *sysdep, const char *ch, uint32_t size, char **out) |
|
static int32_t | _mqtt_upload_file_task_init (aiot_sysdep_portfile_t *sysdep, upload_file_task_handle_t *up_task, const char *file_name, const uint32_t file_size, const char *mode, const char *digest, aiot_mqtt_upload_read_handler_t read_data_handler, void *userdata) |
|
static int32_t | _mqtt_upload_send_request_init (mqtt_upload_handle_t *up_handle, upload_file_task_handle_t *up_task, char *file_name, uint32_t file_size, const char *mode, const char *digest) |
|
static int32_t | _mqtt_upload_send_block_file (mqtt_upload_handle_t *up_handle, upload_file_task_handle_t *up_task, uint8_t *data, const uint32_t block_size, const uint32_t offset) |
|
static int32_t | _mqtt_upload_send_request_cancel (mqtt_upload_handle_t *up_handle, upload_file_task_handle_t *up_task) |
|
static void | _mqtt_upload_core_mqtt_process_handler (void *context, aiot_mqtt_event_t *event, core_mqtt_event_t *core_event) |
|
static int32_t | _mqtt_upload_mqtt_operate_process_handler (mqtt_upload_handle_t *up_handle, core_mqtt_option_t option) |
|
static int32_t | _mqtt_upload_parse_json (aiot_sysdep_portfile_t *sysdep, void *input, uint32_t input_len, char *key_word, char **out) |
|
static uint8_t | _mqtt_upload_block_size_is_valid (uint32_t block_size, uint8_t is_final) |
|
static void | _mqtt_upload_recv_response_process (void *handle, aiot_mqtt_upload_recv_t *packet, upload_file_task_handle_t *up_task) |
|
static void | _mqtt_upload_desc_free (aiot_sysdep_portfile_t *sysdep, aiot_mqtt_upload_recv_t *msg) |
|
static int32_t | _mqtt_upload_subscribe (void *mqtt_handle, mqtt_upload_handle_t *up_handle) |
|
static int32_t | _mqtt_upload_unsubscribe (mqtt_upload_handle_t *up_handle) |
|
void * | aiot_mqtt_upload_init (void) |
| 创建MQTT UPLOAD会话实例, 并以默认值配置会话参数 更多...
|
|
int32_t | aiot_mqtt_upload_deinit (void **handle) |
| 结束MQTT UPLOAD会话, 销毁实例并回收资源 更多...
|
|
int32_t | aiot_mqtt_upload_setopt (void *handle, aiot_mqtt_upload_option_t option, void *data) |
| 配置MQTT UPLOAD会话 更多...
|
|
int32_t | aiot_mqtt_upload_open_stream (void *handle, char *file_name, uint32_t file_size, const char *mode, void *digest, aiot_mqtt_upload_read_handler_t read_data_handler, void *userdata) |
| 向MQTT UPLOAD 服务请求发送文件 更多...
|
|
int32_t | aiot_mqtt_upload_cancel_stream (void *handle, char *file_name) |
| 向mqtt_upload服务器请求关闭MQTT通道数据上传命令 更多...
|
|
aiot_mqtt_upload_result_t | aiot_mqtt_upload_process (void *handle) |
| MQTT Upload 处理函数,处理超时和重发逻辑,返回对应文件的执行的状态 更多...
|
|
MQTT UPLOAD模块头文件, 提供通过mqtt进行文件上传的能力
- 版权所有
- Copyright (C) 2015-2020 Alibaba Group Holding Limited