예제 #1
0
        protected internal override void HandleEvent(Command command)
        {
            base.HandleEvent(command);

            var report = new SwitchBinaryReport(Node, command.Payload);
            OnChanged(new ReportEventArgs<SwitchBinaryReport>(report));
        }
예제 #2
0
        protected internal override void HandleEvent(Command command)
        {
            base.HandleEvent(command);

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

            OnChanged(new ReportEventArgs <SwitchBinaryReport>(report));
        }
 private void HandleSwitchBinaryReport(SwitchBinaryReport report)
 {
     UpdateVariable(report, "SwitchBinary", report.Value);
 }