feat: add labels to NodeInfo
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user