internal static void ProcessCommandInternal(string command)
{
//parse command into new format
string[] cfg = command.Split(',');
string newcommand;
switch (cfg.Length)
{
default:
//generic command
newcommand = cfg[0];
break;
case 2:
//group command
newcommand = cfg[0] + "?group=" + cfg[1];
break;
case 3:
//specific device
newcommand = cfg[0] + "?ot=" + cfg[1] + "&oid=" + cfg[2];
break;
}
MWS.ProcessCommandInternal(newcommand);
}