File tree Expand file tree Collapse file tree 2 files changed +0
-50
lines changed
Expand file tree Collapse file tree 2 files changed +0
-50
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 55namespace 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-
418public interface IPeripheral
429{
4310 string Uuid { get ; }
You can’t perform that action at this time.
0 commit comments