fix: use id parameter and fix some formatting

This commit is contained in:
Andrew Welker
2025-09-23 11:09:37 -05:00
parent c0af637108
commit 9c0cab8218
3 changed files with 4 additions and 6 deletions

View File

@@ -53,8 +53,8 @@ namespace PepperDash.Essentials.AppServer.Messengers
{ {
IsOnline = _communicationMonitor.CommunicationMonitor.IsOnline, IsOnline = _communicationMonitor.CommunicationMonitor.IsOnline,
Status = _communicationMonitor.CommunicationMonitor.Status Status = _communicationMonitor.CommunicationMonitor.Status
} },
}); }, id);
} }
} }

View File

@@ -34,7 +34,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
PowerState = _powerControl.PowerIsOnFeedback.BoolValue PowerState = _powerControl.PowerIsOnFeedback.BoolValue
}; };
PostStatusMessage(messageObj); PostStatusMessage(messageObj, id);
} }
/// <inheritdoc /> /// <inheritdoc />

View File

@@ -20,9 +20,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
protected override void RegisterActions() protected override void RegisterActions()
{ {
AddAction("/status", (id, content) => AddAction("/status", (id, content) => SendFullStatus(id));
SendFullStatus(id)
);
AddAction("/shutdownPromptStatus", (id, content) => SendFullStatus(id)); AddAction("/shutdownPromptStatus", (id, content) => SendFullStatus(id));