Exemplo n.º 1
0
        private void HR_SubscriptionValueChanged(object sender, BLESubscriptionValueChangedEventArgs e)
        {
            this.bLESimulator.SaveBytesHeartRate(e.Data);
            this.bLESimulator.WriteData(WriteOption.Heartrate);
            BLEDecoderHR.Decrypt(e.Data, this.dataHandler);
            string toSendHeartRateData = this.dataHandler.ReadLastData();

            this.iClient.Write(toSendHeartRateData);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Callback for the Heart Rate sensor. Contains data.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>

        private void HR_SubscriptionValueChanged(object sender, BLESubscriptionValueChangedEventArgs e)
        {
            bLESimulator.SaveBytesHeartRate(e.Data);
            bLESimulator.WriteData(WriteOption.Heartrate);
            BLEDecoderHR.Decrypt(e.Data, this.dataHandler);
        }