[Feature][S300][task-view-902][project] add s300 common project
Change-Id: I5e0ce7e50fb0b968befef03ad42bae55f43287d6
diff --git a/lynq/S300_COMMON/ap/app/wefota/wefota_device.h b/lynq/S300_COMMON/ap/app/wefota/wefota_device.h
new file mode 100755
index 0000000..d374db0
--- /dev/null
+++ b/lynq/S300_COMMON/ap/app/wefota/wefota_device.h
@@ -0,0 +1,22 @@
+#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
\ No newline at end of file