void networkSampler_PacketSampled(object sender, IHRMPacket hrmPacket, byte?minHeartRate, byte?maxHeartRate) { #if DEBUG System.Diagnostics.Debug.WriteLine("Sending HRM message"); #endif networkRelay.Send(new HeartRateMessage(hrmPacket.HeartRate, minHeartRate, maxHeartRate)); }
public HRMStatus(HeartRateMonitor hrm, IHRMPacket hrmPacket) { HeartRate = hrm.LastPacket.HeartRate; MinHeartRate = hrm.MinHeartRate; MaxHeartRate = hrm.MaxHeartRate; TotalPackets = hrm.TotalPackets; HRMPacket = hrmPacket; }
public void Log(IHRMPacket hrmPacket) { BtHrpPacket btHrpPacket; if (hrmPacket is BtHrpPacket) { btHrpPacket = (BtHrpPacket)hrmPacket; } else { throw new Exception("Invalid IHRMPacket, BtHrpPacket expected"); } BtHrpLog(btHrpPacket); }
public void Log(IHRMPacket hrmPacket) { ZephyrPacket zephyrPacket; if (hrmPacket is ZephyrPacket) { zephyrPacket = (ZephyrPacket)hrmPacket; } else { throw new Exception("Invalid IHRMPacket, ZephyrPacket expected"); } ZephyrLog(zephyrPacket); }
public void Log(IHRMPacket hrmPacket) { HRMEmulatorPacket hrmEmulatorPacket; if (hrmPacket is HRMEmulatorPacket) { hrmEmulatorPacket = (HRMEmulatorPacket)hrmPacket; } else { throw new Exception("Invalid IHRMPacket, ZephyrPacket expected"); } HRMEmulatorLog(hrmEmulatorPacket); }
public void Log(IHRMPacket hrmPacket) { CMS50Packet cms50Packet; if (hrmPacket is CMS50Packet) { cms50Packet = (CMS50Packet)hrmPacket; } else { throw new Exception("Invalid IHRMPacket, CMS50Packet expected"); } CMS50Log(cms50Packet); }
public PacketProcessedEventArgs(IHRMPacket hrmPacket) { this.HRMPacket = hrmPacket; }