MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / startConfigDownload

Method startConfigDownload

cpp/src/Driver.cpp:7338–7359  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7336
7337
7338bool Driver::startConfigDownload
7339(
7340 uint16 _manufacturerId,
7341 uint16 _productType,
7342 uint16 _productId,
7343 string configfile,
7344 uint8 node
7345)
7346{
7347 HttpDownload *download = new HttpDownload();
7348 std::stringstream ss;
7349 ss << std::hex << std::setw(4) << std::setfill('0') << _productId << ".";
7350 ss << std::hex << std::setw(4) << std::setfill('0') << _productType << ".";
7351 ss << std::hex << std::setw(4) << std::setfill('0') << _manufacturerId << ".xml";
7352 download->url = "http://download.db.openzwave.com/" + ss.str();
7353 download->filename = configfile;
7354 download->operation = HttpDownload::Config;
7355 download->node = node;
7356 Log::Write(LogLevel_Info, "Queuing download for %s (Node %d)", download->url.c_str(), download->node);
7357
7358 return m_httpClient->StartDownload(download);
7359}
7360
7361bool Driver::startMFSDownload
7362(

Callers 2

checkConfigFilesMethod · 0.80
updateConfigFileMethod · 0.80

Calls 3

WriteFunction · 0.85
StartDownloadMethod · 0.80
c_strMethod · 0.45

Tested by 2

checkConfigFilesMethod · 0.64
updateConfigFileMethod · 0.64