Skip to content

Commit be5d911

Browse files
committed
BREAKING CHANGE: autoDiscoverAll is not defaulting to false for faster device connexion
1 parent f4f5b39 commit be5d911

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bluetooth.common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ export interface ConnectOptions {
351351
onDisconnected?: (data: { UUID; name: string }) => void;
352352

353353
/**
354-
* Discover all services on connection
354+
* Discover all services on connection. Default is false for faster connection
355355
*/
356356
autoDiscoverAll?: boolean;
357357

src/bluetooth.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -995,7 +995,7 @@ export class Bluetooth extends BluetoothCommon {
995995
this.centralManager.connectPeripheralOptions(peripheral, null);
996996
});
997997
let services, mtu = FIXED_IOS_MTU;
998-
if (args.autoDiscoverAll !== false) {
998+
if (args.autoDiscoverAll === true) {
999999
services = (await this.discoverAll({ peripheralUUID: connectingUUID }))?.services;
10001000
}
10011001
if (!!args.autoMaxMTU) {

0 commit comments

Comments
 (0)