Skip to content

Commit

Permalink
Added typescript definition, corrected README
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalopitz committed Jun 21, 2020
1 parent 99bbf70 commit 048826b
Show file tree
Hide file tree
Showing 4 changed files with 8,634 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ const {bluetooth, destroy} = createBluetooth()
## `Bluetooth`
| Method | Description |
| --- | --- |
| `String[] adapters()` | List of available adapters |
| `Promise<String[]> adapters()` | List of available adapters |
| `Promise<Adapter> defaultAdapter()` | Get an available adapter |
| `Promise<Adapter> getAdapter(String adapter)` | Get a specific adapter (one of available in `adapters()`)|

Expand Down Expand Up @@ -148,7 +148,7 @@ const {bluetooth, destroy} = createBluetooth()
| Method | Description |
| --- | --- |
| `Promise<String[]> services()` | List of available services |
| `Promise<GattService[]> getPrimaryService(String uuid)` | Returns a specific Primary Service |
| `Promise<GattService> getPrimaryService(String uuid)` | Returns a specific Primary Service |

## `GattService`
| Method | Description |
Expand Down

0 comments on commit 048826b

Please sign in to comment.