Ejemplo n.º 1
0
        protected internal override void HandleEvent(Command command)
        {
            base.HandleEvent(command);

            var report = new SensorAlarmReport(Node, command.Payload);
            OnChanged(new ReportEventArgs<SensorAlarmReport>(report));
        }
Ejemplo n.º 2
0
        protected internal override void HandleEvent(Command command)
        {
            base.HandleEvent(command);

            var report = new SensorAlarmReport(Node, command.Payload);

            OnChanged(new ReportEventArgs <SensorAlarmReport>(report));
        }
 private void HandleSensorAlarmReport(SensorAlarmReport report)
 {
     var variable = report.Type + "SensorAlarm";
     var value = report.Level != 0;
     UpdateVariable(report, variable, value);
 }