/// <summary> /// Constructor to setup some prequisites. The serial code of the Ergometer is needed to setup the connection. /// </summary> /// <param name="ergometerSerialLastFiveNumbers"></param> public BLEconnect(System.String ergometerSerialLastFiveNumbers) { this.ergometerSerialLastFiveNumbers = ergometerSerialLastFiveNumbers; bLESimulator = new BLESimulator(ergometerSerialLastFiveNumbers); init(ergometerSerialLastFiveNumbers); this.dataHandler = new BLEDataHandler(ergometerSerialLastFiveNumbers); }
/// <summary> /// Constructor to setup some prequisites. The serial code of the Ergometer is needed to setup the connection. /// </summary> /// <param name="ergometerSerialLastFiveNumbers"></param> public BLEConnect(string ergometerSerialLastFiveNumbers, IClient iClient, ISim iSim, string patientName, string patientNumber) { this.ergometerSerialLastFiveNumbers = ergometerSerialLastFiveNumbers; this.bLESimulator = new BLESimulator(ergometerSerialLastFiveNumbers); this.dataHandler = new BLEDataHandler(ergometerSerialLastFiveNumbers, patientName, patientNumber); this.iClient = iClient; this.iSim = iSim; }