Ejemplo n.º 1
0
        public override void LoadConfig(Configuration.DeviceConfiguration deviceConfiguration, LogConfiguration logConfiguration)
        {
            hrmEmulator.EmulatorMinBPM = deviceConfiguration.HRMEmulator.Min;
            hrmEmulator.EmulatorMaxBPM = deviceConfiguration.HRMEmulator.Max;

            udpLogger.Address = logConfiguration.Address;
            udpLogger.Port    = logConfiguration.Port;
        }
Ejemplo n.º 2
0
        public override void LoadConfig(Configuration.DeviceConfiguration deviceConfiguration, LogConfiguration logConfiguration)
        {
            if (deviceConfiguration.BtHrp.DeviceId != null)
            {
                foreach (DeviceInformation deviceInformation in BtSmartDevices)
                {
                    if (deviceInformation.Id == deviceConfiguration.BtHrp.DeviceId)
                    {
                        btHrp.Device = deviceInformation;
                        break;
                    }
                }
            }

            btHrp.CharacteristicIndex = deviceConfiguration.BtHrp.CharacteristicIndex;
            btHrp.InitDelay           = deviceConfiguration.BtHrp.InitDelay;

            udpLogger.Address = logConfiguration.Address;
            udpLogger.Port    = logConfiguration.Port;
        }
Ejemplo n.º 3
0
        public override void LoadConfig(Configuration.DeviceConfiguration deviceConfiguration, LogConfiguration logConfiguration)
        {
            if (SerialPorts.Count > 0)
            {
                if (deviceConfiguration.ZephyrHxM.ComPort != null)
                {
                    foreach (string serialPort in SerialPorts)
                    {
                        if (serialPort == deviceConfiguration.ZephyrHxM.ComPort)
                        {
                            zephyrHxM.SerialPort = serialPort;
                            break;
                        }
                    }
                }
                else
                {
                    zephyrHxM.SerialPort = SerialPorts[0];
                }
            }

            udpLogger.Address = logConfiguration.Address;
            udpLogger.Port    = logConfiguration.Port;
        }
Ejemplo n.º 4
0
 public abstract void SaveConfig(Configuration.DeviceConfiguration deviceConfiguration);
Ejemplo n.º 5
0
 public abstract void LoadConfig(Configuration.DeviceConfiguration deviceConfiguration, Configuration.LogConfiguration logConfiguration);