Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added typescript definition, corrected README #10

Merged
merged 4 commits into from
Dec 13, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading