示例#1
0
 public Characteristic(Service service, BluetoothGattCharacteristic characteristic)
 {
     _service                = service;
     _characteristic         = characteristic;
     _uuid                   = new CharacteristicUuid(new Uuid(characteristic.Uuid.ToString()));
     _clientConfigDescriptor = characteristic.GetDescriptor(s_uuidClientConfiguration);
 }
示例#2
0
 public Characteristic(Service service, CBCharacteristic characteristic)
 {
     _service        = service;
     _characteristic = characteristic;
     _uuid           = characteristic.UUID.ToUuid();
 }