示例#1
0
        protected override void CustomSetConfig(DeviceConfig config)
        {
            PropertiesConfig.Presets = NearEndPresets;

            Config.Properties = JToken.FromObject(PropertiesConfig);

            ConfigWriter.UpdateDeviceConfig(config);
        }
示例#2
0
        protected override void CustomSetConfig(DeviceConfig config)
        {
            var newPropertiesConfig = JsonConvert.DeserializeObject <RoomOnToDefaultSourceWhenOccupiedConfig>(config.Properties.ToString());

            if (newPropertiesConfig != null)
            {
                PropertiesConfig = newPropertiesConfig;
            }

            ConfigWriter.UpdateDeviceConfig(config);

            SetUpDevice();
        }
 /// <summary>
 /// Used by the extending class to allow for any custom actions to be taken (tell the ConfigWriter to write config, etc)
 /// </summary>
 /// <param name="Config"></param>
 protected virtual void CustomSetConfig(DeviceConfig config)
 {
     ConfigWriter.UpdateDeviceConfig(config);
 }
示例#4
0
        protected override void CustomSetConfig(DeviceConfig config)
        {
            PropertiesConfig = CommFactory.GetControlPropertiesConfig(config);

            ConfigWriter.UpdateDeviceConfig(config);
        }