Exemplo n.º 1
0
        /// <summary>
        /// Data page 16 contains specific data, just as data page 25 contains very different detailed data. A distinction must be made here.
        /// </summary>
        /// <param name="data"></param>
        public void AddBLEDataForDataPage16(double[] data)
        {
            data[3] = this.heartrate;
            BLEDataPage16 bLEDataPage16 = new BLEDataPage16(data);

            this.BleData.Add(bLEDataPage16);
        }
Exemplo n.º 2
0
 public BLEDataPage16 GetDataForVR()
 {
     if (this.BleData != null)
     {
         if (this.BleData.Count > 0)
         {
             BLEData bleData = this.BleData[this.BleData.Count - 1];
             if (bleData is BLEDataPage16)
             {
                 Console.WriteLine("UPDATING VR NOW");
                 BLEDataPage16 data = (BLEDataPage16)bleData;
                 return(data);
             }
         }
     }
     return(null);
 }