Use shield mac address as bridgeid, if available, to allow implementation of 'replacesbridgeid'
@@ -291,8 +291,17 @@ void DeRestPluginPrivate::configToMap(const ApiRequest &req, QVariantMap &map)
}
map["mac"] = eth.hardwareAddress().toLower();
+ if (gwDeviceAddress.hasExt())
+ {
+ QString bridgeId;
+ bridgeId.sprintf("%016llX", (quint64)gwDeviceAddress.ext());
+ map["bridgeid"] = bridgeId;
+ }
+ else
+ {
map["bridgeid"] = eth.hardwareAddress().remove(':').insert(6,"FFFE");
}
+ }
if (!ok)
{
