blob: d374db07ddc90b65fbdaa9bad4e684c77e585a49 [file] [log] [blame]
#ifndef _WEFOTA_DEVICE_H_
#define _WEFOTA_DEVICE_H_
#include "cfg_api.h"
#define FOTA_INTERVAL_MIN (3600 * 24)
#define FOTA_INTERVAL_RANDOM (3600 * 2)
#define FOTA_DOWNLOAD_FILEPATH "/cache/zte_fota/delta.package"
#define FOTA_UPDATE_STATUS_FILE "/cache/zte_fota/update_status"
int get_iccid(char *iccid);
int get_imei(char *imei);
int get_version(char *version);
int is_data_connected(void);
int get_wefota_server1_cfg(char *ip, int *port);
int set_wefota_server2_cfg(const char *ip, int port);
int get_last_work_time(int *time, int *interval);
int set_last_work_time(int time, int interval);
int start_wefota_install(void);
int wait_fota_conditions(void);
#endif