示例#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;
 }