mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-13 12:37:07 +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,
|
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));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue