feat: add labels to NodeInfo

This commit is contained in:
2025-08-29 13:30:08 +02:00
parent f8e5a9c66f
commit d3a9802ec9
7 changed files with 67 additions and 12 deletions

View File

@@ -107,6 +107,14 @@ void setup() {
// Setup WiFi first
network.setupWiFi();
// Add example labels for this node
auto it = ctx.memberList->find(ctx.hostname);
if (it != ctx.memberList->end()) {
it->second.labels["app"] = "relay";
it->second.labels["device"] = "actuator";
it->second.labels["pin"] = String(RELAY_PIN);
}
// Initialize and start all tasks
taskManager.initialize();