mj.qu | f47abdc | 2025-01-14 17:23:20 -0800 | [diff] [blame^] | 1 | #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 |
|
| 11 | int get_iccid(char *iccid);
|
| 12 | int get_imei(char *imei);
|
| 13 | int get_version(char *version);
|
| 14 | int is_data_connected(void);
|
| 15 | int get_wefota_server1_cfg(char *ip, int *port);
|
| 16 | int set_wefota_server2_cfg(const char *ip, int port);
|
| 17 | int get_last_work_time(int *time, int *interval);
|
| 18 | int set_last_work_time(int time, int interval);
|
| 19 | int start_wefota_install(void);
|
| 20 | int wait_fota_conditions(void);
|
| 21 |
|
| 22 | #endif |