天嵌二次封装库使用手册  V1.0
ota.h
浏览该文件的文档.
1 
2 #ifndef _OTA_H__
3 #define _OTA_H__
4 
20 #include <stdio.h>
21 #include "common.h"
22 #include "http_file.h"
23 #include "parser_file.h"
24 #include "md5sum.h"
25 #include "parser_cmd.h"
26 #include "progress.h"
27 
28 #define VERSION_FILE "/version"
29 #ifdef __cplusplus
30 extern "C"
31 {
32 #endif
33 
39  int start_ota_update(char *ip_port, const char *product);
40 
46  int start_ota_update_sd(const char *product);
47 
54  int get_status(char *str, int len);
55 
61  int set_no_ramdisk_update(int enbale);
62 #ifdef __cplusplus
63 }
64 #endif
65 #endif
int set_no_ramdisk_update(int enbale)
设置产品不从磁盘更新
int get_status(char *str, int len)
获取文件状态信息
int start_ota_update(char *ip_port, const char *product)
在线更新产品
int start_ota_update_sd(const char *product)
从sd卡中更新产品