OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
DownloadFile.h
Go to the documentation of this file.
1/*
2 * DownloadFile.h
3 *
4 * Copyright (c) 2024 openTwin
5 */
6
7#pragma once
8
11
12 // C++ header
13#include <string>
14
15namespace ot {
16 namespace DownloadFile {
17
25 const std::string & _fileUrl,
26 const std::string & _fileName,
27 std::string& _tempFolder,
28 std::string& _error,
29 int _timeout = 3000
30 );
31 }
32}
#define OT_COMMUNICATION_API_EXPORT
Definition CommunicationAPIExport.h:6
OT_COMMUNICATION_API_EXPORT bool download(const std::string &_fileUrl, const std::string &_fileName, std::string &_tempFolder, std::string &_error, int _timeout=3000)
Download a file via HTTP from a server.
Definition DownloadFile.cpp:28
Definition Connector.h:8