Ejemplo n.º 1
0
        public EnOceanDeviceBase(IHSApplication Hs, EnOceanController Ctrl, String deviceId, JObject config)
        {
            HS           = Hs;
            DeviceId     = deviceId;
            deviceConfig = config;
            Controller   = Ctrl;
            deviceType   = (EDeviceTypes)(int)config["device_type"];

            GetHSDevice(); // Fetch or allocate new hs device
        }
Ejemplo n.º 2
0
        public EnOceanDeviceBase(IHSApplication Hs, EnOceanController Ctrl, String deviceId, JObject config)
        {
            HS = Hs;
            DeviceId = deviceId;
            deviceConfig = config;
            Controller = Ctrl;
            deviceType = (EDeviceTypes)(int)config["device_type"];

            GetHSDevice(); // Fetch or allocate new hs device
        }