mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-11 19:44:52 +00:00
fix: use id parameter and fix some formatting
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||||||
PowerState = _powerControl.PowerIsOnFeedback.BoolValue
|
PowerState = _powerControl.PowerIsOnFeedback.BoolValue
|
||||||
};
|
};
|
||||||
|
|
||||||
PostStatusMessage(messageObj);
|
PostStatusMessage(messageObj, id);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
|
|||||||
@@ -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));
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user