mirror of
https://github.com/meshtastic/firmware.git
synced 2025-05-01 03:39:18 +00:00
Start plumbing node_broadcast_interval_secs
This commit is contained in:
parent
2cf648928a
commit
0cda8e6087
@ -21,7 +21,8 @@ void NeighborInfoModule::printNeighborInfo(const char *header, const meshtastic_
|
|||||||
LOG_DEBUG("----------------\n");
|
LOG_DEBUG("----------------\n");
|
||||||
LOG_DEBUG("Packet contains %d neighbors\n", np->neighbors_count);
|
LOG_DEBUG("Packet contains %d neighbors\n", np->neighbors_count);
|
||||||
for (int i = 0; i < np->neighbors_count; i++) {
|
for (int i = 0; i < np->neighbors_count; i++) {
|
||||||
LOG_DEBUG("Neighbor %d: node_id=%d, snr=%d\n", i, np->neighbors[i].node_id, np->neighbors[i].snr);
|
LOG_DEBUG("Neighbor %d: node_id=%d, snr=%d, broadcast_interval=%d\n", i, np->neighbors[i].node_id, np->neighbors[i].snr,
|
||||||
|
np->neighbors[i].node_broadcast_interval_secs);
|
||||||
}
|
}
|
||||||
LOG_DEBUG("----------------\n");
|
LOG_DEBUG("----------------\n");
|
||||||
}
|
}
|
||||||
@ -37,7 +38,8 @@ void NeighborInfoModule::printNodeDBNodes(const char *header)
|
|||||||
LOG_DEBUG("DB contains %d nodes\n", num_nodes);
|
LOG_DEBUG("DB contains %d nodes\n", num_nodes);
|
||||||
for (int i = 0; i < num_nodes; i++) {
|
for (int i = 0; i < num_nodes; i++) {
|
||||||
meshtastic_NodeInfoLite *dbEntry = nodeDB.getMeshNodeByIndex(i);
|
meshtastic_NodeInfoLite *dbEntry = nodeDB.getMeshNodeByIndex(i);
|
||||||
LOG_DEBUG(" Node %d: node_id=%d, snr=%.2f\n", i, dbEntry->num, dbEntry->snr);
|
LOG_DEBUG(" Node %d: node_id=%d, snr=%.2f, broadcast_interval=%d\n", i, dbEntry->num, dbEntry->snr,
|
||||||
|
dbEntry->node_broadcast_interval_secs);
|
||||||
}
|
}
|
||||||
LOG_DEBUG("----------------\n");
|
LOG_DEBUG("----------------\n");
|
||||||
}
|
}
|
||||||
@ -54,7 +56,8 @@ void NeighborInfoModule::printNodeDBNeighbors(const char *header)
|
|||||||
LOG_DEBUG("DB contains %d neighbors\n", num_neighbors);
|
LOG_DEBUG("DB contains %d neighbors\n", num_neighbors);
|
||||||
for (int i = 0; i < num_neighbors; i++) {
|
for (int i = 0; i < num_neighbors; i++) {
|
||||||
meshtastic_Neighbor *dbEntry = getNeighborByIndex(i);
|
meshtastic_Neighbor *dbEntry = getNeighborByIndex(i);
|
||||||
LOG_DEBUG(" Node %d: node_id=%d, snr=%.2f\n", i, dbEntry->node_id, dbEntry->snr);
|
LOG_DEBUG(" Node %d: node_id=%d, snr=%.2f, broadcast_interval=%d\n", i, dbEntry->node_id, dbEntry->snr,
|
||||||
|
dbEntry->node_broadcast_interval_secs);
|
||||||
}
|
}
|
||||||
LOG_DEBUG("----------------\n");
|
LOG_DEBUG("----------------\n");
|
||||||
}
|
}
|
||||||
@ -79,9 +82,11 @@ void NeighborInfoModule::printNodeDBSelection(const char *header, const meshtast
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!chosen) {
|
if (!chosen) {
|
||||||
LOG_DEBUG(" Node %d: neighbor=%d, snr=%.2f\n", i, dbEntry->node_id, dbEntry->snr);
|
LOG_DEBUG(" Node %d: neighbor=%d, snr=%.2f, broadcast_interval=%d\n", i, dbEntry->node_id, dbEntry->snr,
|
||||||
|
dbEntry->node_broadcast_interval_secs);
|
||||||
} else {
|
} else {
|
||||||
LOG_DEBUG("---> Node %d: neighbor=%d, snr=%.2f\n", i, dbEntry->node_id, dbEntry->snr);
|
LOG_DEBUG("---> Node %d: neighbor=%d, snr=%.2f, broadcast_interval=%d\n", i, dbEntry->node_id, dbEntry->snr,
|
||||||
|
dbEntry->node_broadcast_interval_secs);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LOG_DEBUG("----------------\n");
|
LOG_DEBUG("----------------\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user