mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-11 19:44:52 +00:00
fix: check for grant code in mobileadduiclient
If the grant code was not provided, the `mobileadduiclient` console command would fail silently. The command now checks that the correct number of arguments was provided and prints an error to the console of one is missing
This commit is contained in:
@@ -679,6 +679,14 @@ namespace PepperDash.Essentials.WebSocketServer
|
||||
}
|
||||
|
||||
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 grantCode = values[1];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user