File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments