Guard against 'zero' bridgeid detection
@@ -10078,6 +10078,8 @@ void DeRestPlugin::idleTimerFired()
{
d->gwDeviceAddress.setExt(d->apsCtrl->getParameter(deCONZ::ParamMacAddress));
d->gwDeviceAddress.setNwk(d->apsCtrl->getParameter(deCONZ::ParamNwkAddress));
+ if (d->gwDeviceAddress.hasExt())
+ {
d->gwBridgeId.sprintf("%016llX", (quint64)d->gwDeviceAddress.ext());
if (!d->gwConfig.contains("bridgeid") || d->gwConfig["bridgeid"] != d->gwBridgeId)
{
@@ -10087,6 +10089,7 @@ void DeRestPlugin::idleTimerFired()
d->initDescriptionXml();
}
}
+ }
if (!pluginActive())
{
