Skip to content

Commit 12d1073

Browse files
committed
minor
1 parent d2504a9 commit 12d1073

File tree

2 files changed

+0
-50
lines changed

2 files changed

+0
-50
lines changed

src/Shiny.BluetoothLE/IBleManager.cs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,6 @@ public interface IBleManager
4242
IObservable<ScanResult> Scan(ScanConfig? scanConfig = null);
4343
}
4444

45-
46-
public record ScanConfig(
47-
/// <summary>
48-
/// Filters scan to peripherals that advertise specified service UUIDs
49-
/// iOS - you must set this to initiate a background scan
50-
/// </summary>
51-
params string[] ServiceUuids
52-
);
53-
54-
55-
public record ScanResult(
56-
IPeripheral Peripheral,
57-
int Rssi,
58-
IAdvertisementData AdvertisementData
59-
);
60-
61-
6245
//IObservable<IPeripheral> WhenPeripheralStatusChanged();
6346
//IObservable<AccessState> WhenStatusChanged()
6447
// this really needs to be handled by a delegate because that's where the status changes, user should still call RequestAccess or trap when it fails starting a scan operation

src/Shiny.BluetoothLE/IPeripheral.cs

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,39 +5,6 @@
55
namespace Shiny.BluetoothLE;
66

77

8-
public record BleServiceInfo(string Uuid);
9-
10-
public record BleCharacteristicInfo(
11-
BleServiceInfo Service,
12-
string Uuid,
13-
bool IsNotifying,
14-
CharacteristicProperties Properties
15-
);
16-
17-
public record BleDescriptorInfo(
18-
BleCharacteristicInfo Characteristic,
19-
string Uuid
20-
);
21-
22-
public record BleCharacteristicResult(
23-
BleCharacteristicInfo Characteristic,
24-
BleCharacteristicEvent Event,
25-
byte[]? Data
26-
);
27-
28-
public enum BleCharacteristicEvent
29-
{
30-
Read,
31-
Write,
32-
WriteWithoutResponse,
33-
Notification
34-
}
35-
36-
public record BleDescriptorResult(
37-
BleDescriptorInfo Descriptor,
38-
byte[]? Data
39-
);
40-
418
public interface IPeripheral
429
{
4310
string Uuid { get; }

0 commit comments

Comments
 (0)