| 7336 | |
| 7337 | |
| 7338 | bool 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 | |
| 7361 | bool Driver::startMFSDownload |
| 7362 | ( |