Esempio n. 1
0
        protected override void Execute_HomeAutomationDefinition(HomeAutomationCommandContext context)
        {
            var interpreter = context.Interpreter;
            var networks = context.Networks;

            interpreter.WriteEvent("Searching for Z-Wave network adapater...");

            var network = new ZWaveNetwork(new HomeAutomationNetworkContext(context.Engine, context.ThreadPool));
            networks.Add(network);

            interpreter.WriteEvent("Done.");
        }
Esempio n. 2
0
        protected override void Execute_HomeAutomationDefinition(HomeAutomationCommandContext context)
        {
            var interpreter = context.Interpreter;
            var networks    = context.Networks;

            interpreter.WriteEvent("Searching for Z-Wave network adapater...");

            var network = new ZWaveNetwork(new HomeAutomationNetworkContext(context.Engine, context.ThreadPool));

            networks.Add(network);

            interpreter.WriteEvent("Done.");
        }