Skip to content

Commit

Permalink
Add documentation notes for connectedDevices.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cierpliwy committed Mar 21, 2018
1 parent 747863d commit 4f4c755
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2564,7 +2564,8 @@ <h3 class='fl m0' id='blemanager'>



<p>Returns a list of the peripherals (containing any of the specified services) currently connected to the system.</p>
<p>Returns a list of the peripherals (containing any of the specified services) currently connected to the system.
Make sure that services are actually discovered for specified device before calling this function.</p>


<div class='pre p1 fill-light mt0'>connectedDevices(serviceUUIDs: <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a>&#x3C;<a href="#uuid">UUID</a>>): <a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise">Promise</a>&#x3C;<a href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array">Array</a>&#x3C;<a href="#device">Device</a>>></div>
Expand Down
1 change: 1 addition & 0 deletions src/BleManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ export class BleManager {

/**
* Returns a list of the peripherals (containing any of the specified services) currently connected to the system.
* Make sure that services are actually discovered for specified device before calling this function.
* @param {Array<UUID>} serviceUUIDs List of service UUIDs. Device must contain as list one of them to be listed.
*/
async connectedDevices(serviceUUIDs: Array<UUID>): Promise<Array<Device>> {
Expand Down

0 comments on commit 4f4c755

Please sign in to comment.