react-native-ble-nitro
Version:
High-performance React Native BLE library built on Nitro Modules - drop-in replacement for react-native-ble-plx
18 lines (17 loc) • 663 B
TypeScript
import type { HybridObject } from 'react-native-nitro-modules';
import type { Identifier, UUID, DeviceId, Base64, TransactionId } from './types';
export interface Descriptor extends HybridObject<{
ios: 'swift';
android: 'kotlin';
}> {
readonly id: Identifier;
readonly uuid: UUID;
readonly characteristicID: Identifier;
readonly characteristicUUID: UUID;
readonly serviceID: Identifier;
readonly serviceUUID: UUID;
readonly deviceID: DeviceId;
readonly value: Base64 | null;
read(transactionId?: TransactionId): Promise<Descriptor>;
write(valueBase64: Base64, transactionId?: TransactionId): Promise<Descriptor>;
}