public GattCharacteristic(GattServerContext context, string uuid) { this.subscribers = new Dictionary <string, IPeripheral>(); this.disposer = new CompositeDisposable(); this.context = context; this.Uuid = uuid; }
public GattService(GattServerContext context, Guid uuid, bool primary) { this.context = context; var type = primary ? GattServiceType.Primary : GattServiceType.Secondary; this.Native = new BluetoothGattService(uuid.ToUuid(), type); this.characteristics = new List <GattCharacteristic>(); }
public GattService(GattServerContext context, string uuid, bool primary) { this.context = context; var type = primary ? GattServiceType.Primary : GattServiceType.Secondary; this.Native = new BluetoothGattService(UUID.FromString(uuid), type); this.characteristics = new List <GattCharacteristic>(); this.Uuid = uuid; this.Primary = primary; }
public PeripheralManager(AndroidContext context) { this.context = new GattServerContext(context); this.services = new Dictionary <Guid, GattService>(); }
public BleHostingManager(IAndroidContext context, IMessageBus messageBus) { this.context = new GattServerContext(context); this.services = new Dictionary <string, GattService>(); this.messageBus = messageBus; }
public GattCharacteristic(GattServerContext context, Guid uuid) { this.context = context; this.Uuid = uuid; }