nhatuan84 / esp32-upload-download-multipart-http

This library supports upload multipart and download file via http
25 stars 19 forks source link

no matching function for call to 'UDHttp::download(const char [59], int (&)(uint8_t*, int), void (&)(int))' #9

Open KK4HFJ opened 1 year ago

KK4HFJ commented 1 year ago

\esp32_getconfig.ino: In function 'void setup()': \esp32_getconfig.ino:66:97: error: no matching function for call to 'UDHttp::download(const char [59], int (&)(uint8_t, int), void (&)(int))' udh.download("http://www.smart-words.org/linking-words/linking-words.pdf", wdataf, progressf); ^ In file included from \esp32_getconfig.ino:1: \libraries\UDHttp\src/UDHttp.h:27:13: note: candidate: 'int UDHttp::download(char, char, DataCb, ProgressCb)' int download(char downloadUrl, char *downloadFile, DataCb dataCb, ProgressCb progressCb); ^~~~ \libraries\UDHttp\src/UDHttp.h:27:13: note: candidate expects 4 arguments, 3 provided

exit status 1

Compilation error: no matching function for call to 'UDHttp::download(const char [59], int (&)(uint8_t*, int), void (&)(int))'