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

Method CheckNodeConfigRevision

cpp/src/Driver.cpp:7223–7239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7221}
7222
7223bool Driver::CheckNodeConfigRevision
7224(
7225 Node *node
7226)
7227{
7228 DNSLookup *lu = new DNSLookup;
7229 lu->NodeID = node->GetNodeId();
7230 /* make up a string of what we want to look up */
7231 std::stringstream ss;
7232 ss << std::hex << std::setw(4) << std::setfill('0') << node->GetProductId() << ".";
7233 ss << std::hex << std::setw(4) << std::setfill('0') << node->GetProductType() << ".";
7234 ss << std::hex << std::setw(4) << std::setfill('0') << node->GetManufacturerId() << ".db.openzwave.com";
7235
7236 lu->lookup = ss.str();
7237 lu->type = DNS_Lookup_ConfigRevision;
7238 return m_dns->sendRequest(lu);
7239}
7240
7241bool Driver::CheckMFSConfigRevision
7242(

Callers 2

Calls 5

GetNodeIdMethod · 0.80
sendRequestMethod · 0.80
GetProductIdMethod · 0.45
GetProductTypeMethod · 0.45
GetManufacturerIdMethod · 0.45

Tested by

no test coverage detected