28 #define SPI_FLASH_SEC_SIZE 4096
29 #define LIMIT_ERASE_SIZE 0x10000
31 #define USER_BIN1 0x00
32 #define USER_BIN2 0x01
34 #define UPGRADE_FLAG_IDLE 0x00
35 #define UPGRADE_FLAG_START 0x01
36 #define UPGRADE_FLAG_FINISH 0x02
38 #define UPGRADE_FW_BIN1 0x00
39 #define UPGRADE_FW_BIN2 0x01
61 #define UPGRADE_FLAG_IDLE 0x00
62 #define UPGRADE_FLAG_START 0x01
63 #define UPGRADE_FLAG_FINISH 0x02
69 #ifdef UPGRADE_SSL_ENABLE
uint8 * url
Definition: upgrade.h:55
uint8 upgrade_version[16]
Definition: upgrade.h:52
unsigned short uint16
Definition: c_types.h:48
uint16 port
Definition: upgrade.h:47
void(* upgrade_states_check_callback)(void *arg)
Definition: upgrade.h:41
void system_upgrade_deinit()
struct espconn * pespconn
Definition: upgrade.h:58
uint32 check_times
Definition: upgrade.h:54
unsigned char uint8
Definition: c_types.h:43
uint8 pre_version[16]
Definition: upgrade.h:51
upgrade_states_check_callback check_cb
Definition: upgrade.h:57
uint8 upgrade_flag
Definition: upgrade.h:49
unsigned int uint32
Definition: c_types.h:52
Definition: espconn.h:104
uint8 ip[4]
Definition: upgrade.h:46
bool system_upgrade(uint8 *data, uint16 len)
void system_upgrade_init()
struct espconn * server
Definition: http_client.c:16
bool system_upgrade_start(struct upgrade_server_info *server)