public void AddToServer(GattServer server) { this.Server = server; server._GattServices.Add(this); server.DroidGattServer.AddService(DroidService); }
public static GattServer.GattServerService.GattServerCharacteristic.GattServerDescriptor ToDescriptor(this Android.Bluetooth.BluetoothGattDescriptor self, GattServer server) { var service = server.GattServices.GetFromUuid(self.Characteristic.Service.Uuid.ToGuid()); var characteristic = service.GattCharacteristics.GetFromUuid(self.Characteristic.Uuid.ToGuid()); var descriptor = characteristic.Descriptors.GetFromUuid(self.Uuid.ToGuid()); return(descriptor); //var descriptor = characteristic.Descriptors.GetFromUuid(self.Uuid); }
public ServerCallback(GattServer gattServer) { GattServer = gattServer; }