Skip to content

Commit

Permalink
Updated documentation of function startScan with param allowDuplicates.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikael Kindborg committed May 15, 2016
1 parent 3a16823 commit 76b99c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api_classic.md
Expand Up @@ -7,7 +7,7 @@
Start scanning for devices.

```
void bleat.startScan([serviceUUIDs], foundFn, [completeFn], [errorFn]);
void bleat.startScan([serviceUUIDs], foundFn, [completeFn], [errorFn], [allowDuplicates]);
```

string array serviceUUIDs: array or service UUIDs to scan for
Expand All @@ -18,6 +18,8 @@ function completeFn(): called when scanning successfully started

function errorFn(errorMsg): called if error occurs

bool allowDuplicates: will report the same device multiple times if set to true, will report once if set to false or omitted (false is the default)

#### bleat.stopScan

Stop scanning for devices.
Expand Down

0 comments on commit 76b99c4

Please sign in to comment.