# use-bluetooth-notifications

> A react hook to easily use and listen to bluetooth notifications from a specified service and characteristic

Latest version **0.0.1** (published 2020-05-15) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install use-bluetooth-notifications
pnpm add use-bluetooth-notifications
yarn add use-bluetooth-notifications
bun add use-bluetooth-notifications
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2020-05-15 |
| First published | 2020-05-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 1 |
| Unpacked size | 147.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matt Williams |
| Maintainers | mattwilliamsdev |

## Links

- npm: https://www.npmjs.com/package/use-bluetooth-notifications
- npm.io page: https://npm.io/package/use-bluetooth-notifications

## Dependencies (1)

- [react-test-renderer](https://npm.io/package/react-test-renderer.md) ^16.13.1

## Recent versions

- 0.0.1 (latest) — 2020-05-15

## README

# use-bluetooth-notifications
A react hook to easily use and listen to bluetooth notifications from a specified service and characteristic

## Usage

```tsx
const { device, status, stream, startStream, stopStream } = useBluetoothNotifications({
  serviceUuid = "health_thermometer",
  characteristicUuid = "temperature_measurement",
  notificationHandler = (parsedValue) => { ... },
});

<button onClick={startStream}>Start</button>
<button onClick={stopStream}>Stop</button>
```

---
_Source: https://npm.io/package/use-bluetooth-notifications · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
