forked from vitorpamplona/react-native-ble-advertiser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
27 lines (24 loc) · 973 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
export as namespace BLEAdvertiser;
export interface ScanOptions {
numberOfMatches?: number;
matchMode?: number;
scanMode?: number;
reportDelay?: number;
}
export interface BroadcastOptions {
txPowerLevel?: number;
advertiseMode?: number;
includeDeviceName?: boolean;
includeTxPowerLevel?: boolean;
connectable?: boolean;
}
export function setCompanyId(companyId: number): void;
export function broadcast(uid: String, manufData: number[], options?: BroadcastOptions): Promise<string>;
export function stopBroadcast(): Promise<string>;
export function scan(manufDataFilter: number[], options?: ScanOptions): Promise<string>;
export function scanByService(uidFilter: String, options?: ScanOptions): Promise<string>;
export function stopScan(): Promise<string>;
export function enableAdapter(): void;
export function disableAdapter(): void;
export function getAdapterState(): Promise<string>;
export function isActive(): Promise<boolean>;