‪Black Box
DeviceControl.cs
Go to the documentation of this file.
1 /*
2 * FILE : DeviceControl.cs
3 * PROJECT : Black Box
4 * PROGRAMMER : BRIAN HINDS
5 * FIRST VERSION : 1.0.0.0
6 * DATE : March 20, 2019
7 * DESCRIPTION : Used for manage Fitness data and encryption
8 */
9 
10 using System;
11 
12 namespace ‪MiBand_Heartrate
13 {
14  internal class ‪DeviceControl
15  {
16  #region DeviceControl_Singleton
17 
18  private static readonly ‪DeviceControl ‪instance = new ‪DeviceControl();
19 
21  {
22  }
23 
24  private ‪DeviceControl()
25  {
26  }
27 
29 
30  #endregion DeviceControl_Singleton
31 
33 
35 
36  public void ‪Initialize()
37  {
39  }
40 
41  public void ‪WriteRealtimeHeartrateInFile(‪MiBand d, ushort v)
42  {
43  ‪BBMiBandDataEncryption.‪EncryptData(v.ToString() + "," + DateTime.Now.ToString("HH:mm:ss") + "," + DateTime.Now.ToString("yyyy-MM-dd"));
44  }
45  }
46 }
‪static void EncryptData(string SensorData)
‪This method encrypts the sensor data
‪void WriteRealtimeHeartrateInFile(MiBand d, ushort v)
‪static readonly DeviceControl instance
‪static DeviceControl Instance