|
libPocuter
1.0
Support library for programming the Pocuter
|
Go to the documentation of this file.
32 virtual HTTPERROR downloadFile(
const uint8_t* url,
const uint8_t* destination,
bool stepwise, uint8_t *percent,
const uint8_t* PEMcert = NULL) = 0;
43 virtual HTTPERROR getResponse(
const uint8_t* url, uint8_t* response,
size_t maxSize, uint16_t timeout = 5000,
const uint8_t* PEMcert = NULL) = 0;
HTTP(S) download.
Definition: PocuterHTTP.h:9
@ HTTPERROR_UNKNOWN
Definition: PocuterHTTP.h:18
@ HTTPERROR_FILE_OPEN_FAILED
Definition: PocuterHTTP.h:15
@ HTTPERROR_CONNECT_FAILED
Definition: PocuterHTTP.h:13
virtual HTTPERROR getResponse(const uint8_t *url, uint8_t *response, size_t maxSize, uint16_t timeout=5000, const uint8_t *PEMcert=NULL)=0
sends a get request to a server
@ HTTPERROR_DOWNLOAD_FAILED
Definition: PocuterHTTP.h:16
HTTPERROR
Definition: PocuterHTTP.h:11
@ HTTPERROR_NO_MEMORY
Definition: PocuterHTTP.h:14
@ HTTPERROR_OK
Definition: PocuterHTTP.h:12
virtual HTTPERROR downloadFile(const uint8_t *url, const uint8_t *destination, bool stepwise, uint8_t *percent, const uint8_t *PEMcert=NULL)=0
download a file from web
@ HTTPERROR_MORE_STEPS
Definition: PocuterHTTP.h:17