feat: add labels to NodeInfo
This commit is contained in:
@@ -54,5 +54,7 @@ void NetworkManager::setupWiFi() {
|
||||
}
|
||||
self.lastSeen = millis();
|
||||
self.status = NodeInfo::ACTIVE;
|
||||
// Initialize a default label for demonstration; users can modify at runtime
|
||||
self.labels["hostname"] = ctx.hostname;
|
||||
ctx.fire("node_discovered", &self);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user