kopia lustrzana https://github.com/martin-ger/esp_mqtt
fixed http script download
rodzic
f652c46388
commit
b9d9e91924
Plik binarny nie jest wyświetlany.
|
@ -1,2 +1,2 @@
|
|||
c08f223b081e1c36aae2ffc8b2ab79ad1949d665 0x00000.bin
|
||||
a6bf6dce93592298d82a4920c66712c369d8ab98 0x10000.bin
|
||||
11a30e04e0f5e6f04ca7447177992134f7f63976 0x10000.bin
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Ładowanie…
Reference in New Issue