public TradfriController(string gatewayName, string gatewayIp) : base(new CoapImplementation()) //Implementation of the COAP model
        {
            this.GateWayName = gatewayName;
            _gatewayIp       = gatewayIp;

            DeviceController     = new DeviceController(this);
            GatewayController    = new GatewayController(this);
            GroupController      = new GroupController(this);
            SmartTasksController = new SmartTaskController(this);
        }
Beispiel #2
0
        public TradfriController(string gatewayName, string gatewayIp) : base("https://www.ikea.com/") //Ignore this
        {
            this.GateWayName = gatewayName;
            _gatewayIp       = gatewayIp;

            DeviceController     = new DeviceController(this);
            GatewayController    = new GatewayController(this);
            GroupController      = new GroupController(this);
            SmartTasksController = new SmartTaskController(this);
        }
Beispiel #3
0
        // set color example
        private void GetSmartTasks()
        {
            GatewayController gwc = new GatewayController(_gatewayConnection.Client);

            foreach (long smartTaskID in gwc.GetSmartTasks())
            {
                SmartTaskController stc = new SmartTaskController(smartTaskID, _gatewayConnection.Client);
                stc.GetTradFriSmartTask();
                stc.GetSelectedRepeatDays();
            }
        }