Ejemplo n.º 1
0
        private void SetCallbacks()
        {
            _thermostat.ThermostatTemperatureChanged += (sender, args) =>
            {
                var controlThinkTemperature = args.ThermostatTemperature;
                var roomieTemperature       = controlThinkTemperature.ToRoomieType();

                Temperature = roomieTemperature;

                IEventSource source = null;
                var          @event = DeviceEvent.TemperatureChanged(_device, source);
                _device.AddEvent(@event);
            };
        }
Ejemplo n.º 2
0
 protected override IDeviceEvent CreateDeviceEvent()
 {
     return(DeviceEvent.TemperatureChanged(Device, null));
 }