Skip to content

Commit

Permalink
feat(adapter): Add isAdvertising getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Crespi committed Nov 19, 2020
1 parent f3226f6 commit 3a11903
Show file tree
Hide file tree
Showing 11 changed files with 53 additions and 19 deletions.
1 change: 1 addition & 0 deletions lib/bindings/dbus/Adapter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export declare class DbusAdapter extends Adapter {
private onScanStop;
private onDeviceFound;
private updatePeripherals;
isAdvertising(): Promise<boolean>;
startAdvertising(): Promise<void>;
stopAdvertising(): Promise<void>;
setupGatt(maxMtu?: number): Promise<GattLocal>;
Expand Down
3 changes: 3 additions & 0 deletions lib/bindings/dbus/Adapter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/bindings/dbus/Adapter.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions lib/bindings/hci/Adapter.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ export declare class HciAdapter extends Adapter {
private connectedDevices;
private uuidToHandle;
private handleToUUID;
getScannedPeripherals(): Promise<Peripheral[]>;
isScanning(): Promise<boolean>;
private init;
dispose(): void;
isScanning(): Promise<boolean>;
startScanning(): Promise<void>;
stopScanning(): Promise<void>;
getScannedPeripherals(): Promise<Peripheral[]>;
private onDiscover;
connect(peripheral: HciPeripheral): Promise<void>;
disconnect(peripheral: HciPeripheral): Promise<void>;
isAdvertising(): Promise<boolean>;
startAdvertising(deviceName: string, serviceUUIDs?: string[]): Promise<void>;
stopAdvertising(): Promise<void>;
setupGatt(maxMtu?: number): Promise<GattLocal>;
Expand Down
19 changes: 13 additions & 6 deletions lib/bindings/hci/Adapter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3a11903

Please sign in to comment.