Skip to content

Commit 2c9b812

Browse files
authored
Added isConnectable to ScanParams interface
Docs mention isConnectable param as an option for startScan(), but ScanParams does not include it. Windows 10 UWP isConnectable - Windows 10 will, by default, show all devices ever seen by the system, even if the device is off. If you want to only devices that are on and connectable, set this to true.
1 parent 1d2389d commit 2c9b812

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

types/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,9 @@ declare namespace BluetoothlePlugin {
614614
/** Defaults to One Advertisement. Available from API23 (Android) */
615615
matchNum?: BluetoothMatchNum,
616616
/** Defaults to All Matches. Available from API21 / API 23. (Android) */
617-
callbackType?: BluetoothCallbackType
617+
callbackType?: BluetoothCallbackType,
618+
/** True/false to show only connectable devices, rather than all devices ever seen, defaults to false (Windows)*/
619+
isConnectable?: boolean
618620
}
619621

620622
interface NotifyParams {

0 commit comments

Comments
 (0)