![]() |
Black Box
|
Public Member Functions | |
delegate void | OnDeviceConnected (BLEManager manager) |
DeviceWatcher | CreateWatcher () |
Manages fitness tracker More... | |
void | StartWatcher () |
void | StopWatcher () |
async void | Connect (string deviceId, OnDeviceConnected callback=null) |
void | Disconnect () |
bool | IsWatchingForDevice () |
bool | HasDeviceConnected () |
async void | Write (GattCharacteristic c, byte[] data) |
async void | EnumeratingUsages () |
Not used but can be useful for debugging More... | |
Data Fields | |
BluetoothLEDevice | Device => connectedDevice |
Private Attributes | |
DeviceWatcher | watcher = null |
List< DeviceInformation > | devices = new List<DeviceInformation>() |
BluetoothLEDevice | connectedDevice = null |
Definition at line 24 of file BLEManager.cs.
async void MiBand_Heartrate.BLEManager.Connect | ( | string | deviceId, |
OnDeviceConnected | callback = null |
||
) |
deviceId | |
callback |
Definition at line 89 of file BLEManager.cs.
Referenced by MiBand_Heartrate.BBMiBandConnect.connectButton_Click().
DeviceWatcher MiBand_Heartrate.BLEManager.CreateWatcher | ( | ) |
Manages fitness tracker
Definition at line 38 of file BLEManager.cs.
Referenced by MiBand_Heartrate.BBMiBandConnect.ConnectionFrame_Load().
void MiBand_Heartrate.BLEManager.Disconnect | ( | ) |
Definition at line 97 of file BLEManager.cs.
Referenced by MiBand_Heartrate.ControlFrame.ControlFrame_FormClosing().
async void MiBand_Heartrate.BLEManager.EnumeratingUsages | ( | ) |
Not used but can be useful for debugging
Definition at line 148 of file BLEManager.cs.
bool MiBand_Heartrate.BLEManager.HasDeviceConnected | ( | ) |
Definition at line 113 of file BLEManager.cs.
Referenced by MiBand_Heartrate.ControlFrame.ControlFrame_FormClosing(), MiBand_Heartrate.BLEManager.EnumeratingUsages(), MiBand_Heartrate.BBMiBandConnect.OnDeviceConnected(), and MiBand_Heartrate.BLEManager.Write().
bool MiBand_Heartrate.BLEManager.IsWatchingForDevice | ( | ) |
Definition at line 105 of file BLEManager.cs.
Referenced by MiBand_Heartrate.BBMiBandConnect.ConnectionFrame_FormClosing().
delegate void MiBand_Heartrate.BLEManager.OnDeviceConnected | ( | BLEManager | manager | ) |
void MiBand_Heartrate.BLEManager.StartWatcher | ( | ) |
Definition at line 75 of file BLEManager.cs.
void MiBand_Heartrate.BLEManager.StopWatcher | ( | ) |
Definition at line 80 of file BLEManager.cs.
Referenced by MiBand_Heartrate.BBMiBandConnect.ConnectionFrame_FormClosing().
async void MiBand_Heartrate.BLEManager.Write | ( | GattCharacteristic | c, |
byte [] | data | ||
) |
c | |
data |
Definition at line 122 of file BLEManager.cs.
Referenced by MiBand_Heartrate.MiBand.Authenticate(), MiBand_Heartrate.MiBand.RunPingSensor(), MiBand_Heartrate.MiBand.StartMonitorHeartrate(), and MiBand_Heartrate.MiBand.StopMonitorHeartrate().
|
private |
Definition at line 30 of file BLEManager.cs.
Referenced by MiBand_Heartrate.BLEManager.Connect(), MiBand_Heartrate.BLEManager.Disconnect(), MiBand_Heartrate.BLEManager.EnumeratingUsages(), and MiBand_Heartrate.BLEManager.HasDeviceConnected().
BluetoothLEDevice MiBand_Heartrate.BLEManager.Device => connectedDevice |
Definition at line 32 of file BLEManager.cs.
Referenced by MiBand_Heartrate.MiBand.Authenticate(), and MiBand_Heartrate.MiBand.StartMonitorHeartrate().
|
private |
Definition at line 29 of file BLEManager.cs.
Referenced by MiBand_Heartrate.BLEManager.CreateWatcher().
|
private |
Definition at line 28 of file BLEManager.cs.
Referenced by MiBand_Heartrate.BLEManager.CreateWatcher(), MiBand_Heartrate.BLEManager.IsWatchingForDevice(), MiBand_Heartrate.BLEManager.StartWatcher(), and MiBand_Heartrate.BLEManager.StopWatcher().