mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
fix: use id parameter and fix some formatting
This commit is contained in:
parent
c0af637108
commit
9c0cab8218
3 changed files with 4 additions and 6 deletions
|
|
@ -53,8 +53,8 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||
{
|
||||
IsOnline = _communicationMonitor.CommunicationMonitor.IsOnline,
|
||||
Status = _communicationMonitor.CommunicationMonitor.Status
|
||||
}
|
||||
});
|
||||
},
|
||||
}, id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||
PowerState = _powerControl.PowerIsOnFeedback.BoolValue
|
||||
};
|
||||
|
||||
PostStatusMessage(messageObj);
|
||||
PostStatusMessage(messageObj, id);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
|
|
|
|||
|
|
@ -20,9 +20,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||
|
||||
protected override void RegisterActions()
|
||||
{
|
||||
AddAction("/status", (id, content) =>
|
||||
SendFullStatus(id)
|
||||
);
|
||||
AddAction("/status", (id, content) => SendFullStatus(id));
|
||||
|
||||
AddAction("/shutdownPromptStatus", (id, content) => SendFullStatus(id));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue