Merge pull request #1245 from PepperDash/fix-add-client

Update `mobileadduiclient` command & `CrestronGenericBaseDevice.CustomActivate` method
This commit is contained in:
Neil Dorin 2025-04-08 12:47:08 -06:00 committed by GitHub
commit 403c03491c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 1 deletions

View file

@ -104,7 +104,7 @@ namespace PepperDash.Essentials.Core
Hardware.OnlineStatusChange += Hardware_OnlineStatusChange; Hardware.OnlineStatusChange += Hardware_OnlineStatusChange;
CommunicationMonitor.Start(); CommunicationMonitor.Start();
return true; return base.CustomActivate();
} }
/// <summary> /// <summary>

View file

@ -679,6 +679,14 @@ namespace PepperDash.Essentials.WebSocketServer
} }
var values = s.Split(' '); var values = s.Split(' ');
if(values.Length < 2)
{
CrestronConsole.ConsoleCommandResponse("Invalid number of arguments. Please provide a room key and a grant code");
return;
}
var roomKey = values[0]; var roomKey = values[0];
var grantCode = values[1]; var grantCode = values[1];