blob: d374db07ddc90b65fbdaa9bad4e684c77e585a49 [file] [log] [blame]
mj.quf47abdc2025-01-14 17:23:20 -08001#ifndef _WEFOTA_DEVICE_H_
2#define _WEFOTA_DEVICE_H_
3
4#include "cfg_api.h"
5
6#define FOTA_INTERVAL_MIN (3600 * 24)
7#define FOTA_INTERVAL_RANDOM (3600 * 2)
8#define FOTA_DOWNLOAD_FILEPATH "/cache/zte_fota/delta.package"
9#define FOTA_UPDATE_STATUS_FILE "/cache/zte_fota/update_status"
10
11int get_iccid(char *iccid);
12int get_imei(char *imei);
13int get_version(char *version);
14int is_data_connected(void);
15int get_wefota_server1_cfg(char *ip, int *port);
16int set_wefota_server2_cfg(const char *ip, int port);
17int get_last_work_time(int *time, int *interval);
18int set_last_work_time(int time, int interval);
19int start_wefota_install(void);
20int wait_fota_conditions(void);
21
22#endif