コード例 #1
0
        private void _mcp_executeCommand(ProgramCommand c)
        {
            string wrequest         = c.Domain + "/" + c.Target + "/" + c.CommandString + "/" + c.CommandArguments;
            MIGInterfaceCommand cmd = new MIGInterfaceCommand(wrequest);

            _homegenie.InterfaceControl(cmd);
            _homegenie.WaitOnPending(c.Domain);
        }
コード例 #2
0
 private void _interfacecontrol(Module module, MIGInterfaceCommand cmd)
 {
     cmd.domain = module.Domain;
     cmd.nodeid = module.Address;
     //string options = "";
     //for (int o = 0; o < cmd.options.Length; o++ )
     //{
     //    options += cmd.options[o] + "/";
     //}
     _homegenie.InterfaceControl(cmd); //new Command("/" + module.Domain + "/" + module.Address + "/" + cmd.command + "/" + options));
     _homegenie.WaitOnPending(module.Domain);
 }