Example #1
0
 /// <summary>
 /// Raises the rf data received event.
 /// </summary>
 /// <param name="args">Arguments.</param>
 protected virtual void OnRfDataReceived(RfDataReceivedEventArgs args)
 {
     if (RfDataReceived != null)
     {
         RfDataReceived(this, args);
     }
 }
 private void W800Rf32_RfDataReceived(object sender, RfDataReceivedEventArgs args)
 {
     var code = BitConverter.ToString(args.Data).Replace("-", " ");
     OnInterfacePropertyChanged(this.GetDomain(), "RF", "W800RF32 RF Receiver", ModuleEvents.Receiver_RawData, code);
     if (rfPulseTimer == null)
     {
         rfPulseTimer = new Timer(delegate(object target)
         {
             OnInterfacePropertyChanged(this.GetDomain(), "RF", "W800RF32 RF Receiver", ModuleEvents.Receiver_RawData, "");
         });
     }
     rfPulseTimer.Change(1000, Timeout.Infinite);
 }
 static void X10rf_RfDataReceived(object sender, RfDataReceivedEventArgs args)
 {
     Console.WriteLine("Received RF raw data: {0}", BitConverter.ToString(args.Data));
 }
 /// <summary>
 /// Raises the rf data received event.
 /// </summary>
 /// <param name="args">Arguments.</param>
 protected virtual void OnRfDataReceived(RfDataReceivedEventArgs args)
 {
     if (RfDataReceived != null)
         RfDataReceived(this, args);
 }