Improve debug prints for better reading of joining nodes

This commit is contained in:
Simon Stürz 2020-12-09 17:20:04 +01:00
parent bbc03066b4
commit 402ba069a1

View File

@ -441,11 +441,14 @@ void ZigbeeManager::addNetwork(ZigbeeNetwork *network)
qCDebug(dcZigbee()) << "-->" << node;
foreach (ZigbeeNodeEndpoint *endpoint, node->endpoints()) {
qCDebug(dcZigbee()) << " " << endpoint;
if (!endpoint->manufacturerName().isEmpty()) {
qCDebug(dcZigbee()) << " Manufacturer" << endpoint->manufacturerName();
if (!endpoint->manufacturerName().isEmpty())
qCDebug(dcZigbee()) << " Manufacturer:" << endpoint->manufacturerName();
if (!endpoint->modelIdentifier().isEmpty())
qCDebug(dcZigbee()) << " Model" << endpoint->modelIdentifier();
if (!endpoint->softwareBuildId().isEmpty())
qCDebug(dcZigbee()) << " Version" << endpoint->softwareBuildId();
}
qCDebug(dcZigbee()) << " Input clusters (" << endpoint->inputClusters().count() << ")";
foreach (ZigbeeCluster *cluster, endpoint->inputClusters()) {
@ -489,11 +492,15 @@ void ZigbeeManager::addNetwork(ZigbeeNetwork *network)
qCDebug(dcZigbee()) << "-->" << node;
foreach (ZigbeeNodeEndpoint *endpoint, node->endpoints()) {
qCDebug(dcZigbee()) << " " << endpoint;
if (!endpoint->manufacturerName().isEmpty()) {
qCDebug(dcZigbee()) << " Manufacturer" << endpoint->manufacturerName();
if (!endpoint->manufacturerName().isEmpty())
qCDebug(dcZigbee()) << " Manufacturer:" << endpoint->manufacturerName();
if (!endpoint->modelIdentifier().isEmpty())
qCDebug(dcZigbee()) << " Model" << endpoint->modelIdentifier();
if (!endpoint->softwareBuildId().isEmpty())
qCDebug(dcZigbee()) << " Version" << endpoint->softwareBuildId();
}
qCDebug(dcZigbee()) << " Input clusters (" << endpoint->inputClusters().count() << ")";
foreach (ZigbeeCluster *cluster, endpoint->inputClusters()) {
qCDebug(dcZigbee()) << " -" << cluster;