mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
Adds CustomUnregisterWithAppServer method to allow unregistration at runtime
This commit is contained in:
parent
5819ac78ec
commit
c54351f8ee
3 changed files with 32 additions and 7 deletions
|
|
@ -776,13 +776,12 @@ namespace PepperDash.Essentials.Room.MobileControl
|
|||
{
|
||||
foreach (var device in ConfigReader.ConfigObject.Devices)
|
||||
{
|
||||
if (device.Group.Equals("appServerMessenger"))
|
||||
if (device.Group.Equals("simplmessenger"))
|
||||
{
|
||||
var props = JsonConvert.DeserializeObject<SimplMessengerPropertiesConfig>(device.Properties.ToString());
|
||||
|
||||
var messengerKey = string.Format("device-{0}-{1}", this.Key, Parent.Key);
|
||||
|
||||
MessengerBase messenger = null;
|
||||
|
||||
var dev = ConfigReader.ConfigObject.GetDeviceForKey(props.DeviceKey);
|
||||
|
||||
|
|
@ -793,6 +792,7 @@ namespace PepperDash.Essentials.Room.MobileControl
|
|||
}
|
||||
|
||||
var type = device.Type.ToLower();
|
||||
MessengerBase messenger = null;
|
||||
|
||||
if (type.Equals("simplcameramessenger"))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue