예제 #1
0
 public void AddToServer(GattServer server)
 {
     this.Server = server;
     server._GattServices.Add(this);
     server.DroidGattServer.AddService(DroidService);
 }
예제 #2
0
        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);
        }
예제 #3
0
 public ServerCallback(GattServer gattServer)
 {
     GattServer = gattServer;
 }