fixed http script download

master
Martin Ger 2018-01-29 22:29:27 +01:00
rodzic f652c46388
commit b9d9e91924
4 zmienionych plików z 3 dodań i 3 usunięć

Plik binarny nie jest wyświetlany.

Wyświetl plik

@ -1,2 +1,2 @@
c08f223b081e1c36aae2ffc8b2ab79ad1949d665 0x00000.bin
a6bf6dce93592298d82a4920c66712c369d8ab98 0x10000.bin
11a30e04e0f5e6f04ca7447177992134f7f63976 0x10000.bin

Wyświetl plik

@ -37,7 +37,7 @@ extern uint8_t *my_script;
extern struct espconn *downloadCon;
extern struct espconn *scriptcon;
void http_script_cb(char *response_body, int http_status, char *response_headers, int body_size);
void http_script_cb(char* hostname, char* path, char *response_body, int http_status, char *response_headers, int body_size);
void script_connected_cb(void *arg);
#endif

Wyświetl plik

@ -152,7 +152,7 @@ static void ICACHE_FLASH_ATTR script_recv_cb(void *arg, char *data, unsigned sho
}
}
void ICACHE_FLASH_ATTR http_script_cb(char *response_body, int http_status, char *response_headers, int body_size) {
void ICACHE_FLASH_ATTR http_script_cb(char* hostname, char* path, char *response_body, int http_status, char *response_headers, int body_size) {
char response[64];
if (http_status != 200) {