addDescriptor method
Adds a descriptor with |descriptorUuid| to the characteristic respresented by |characteristicId|. Returns: An identifier that uniquely represents this descriptor.
Implementation
Future<String> addDescriptor(
String characteristicId,
String descriptorUuid,
) async {
var result = await _client.send('BluetoothEmulation.addDescriptor', {
'characteristicId': characteristicId,
'descriptorUuid': descriptorUuid,
});
return result['descriptorId'] as String;
}