Don't repeadedly static datecode and sw build id
With execption of updateable devices.
@@ -374,19 +374,28 @@ void PollManager::pollTimerFired()
if (item && (item->toString().isEmpty() ||
(item->lastSet().secsTo(now) > READ_SWBUILD_ID_INTERVAL))) // dynamic
{
- clusterId = BASIC_CLUSTER_ID;
if (lightNode->manufacturerCode() == VENDOR_UBISYS ||
lightNode->manufacturerCode() == VENDOR_EMBER ||
lightNode->manufacturerCode() == VENDOR_120B ||
lightNode->manufacturerCode() == VENDOR_115F ||
lightNode->manufacturer().startsWith(QLatin1String("Climax")))
+ {
+ if (item->toString().isEmpty())
{
attributes.push_back(0x0006); // date code
+ clusterId = BASIC_CLUSTER_ID;
+ }
}
else
+ {
+ if (item->toString().isEmpty() ||
+ lightNode->manufacturerCode() == VENDOR_XAL ||
+ lightNode->manufacturerCode() == VENDOR_DDEL)
{
attributes.push_back(0x4000); // sw build id
+ clusterId = BASIC_CLUSTER_ID;
+ }
}
}
}
