# simble

> SIMple access to BLE (Bluetooth Low Energy = Bluetooth 4.x) devices

Latest version **0.2.6** (published 2020-08-29) · ISC license · 0 weekly downloads

## Install

```sh
npm install simble
pnpm add simble
yarn add simble
bun add simble
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.6 |
| Published | 2020-08-29 |
| First published | 2017-03-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 59.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | oyooyo |
| Maintainers | oyo |
| Keywords | BLE, Bluetooth, Bluetooth 4, Bluetooth 4.0, Bluetooth 4.x, Bluetooth LE, Bluetooth Low Energy, BTLE, noble |

## Links

- npm: https://www.npmjs.com/package/simble
- Repository: https://github.com/oyooyo/simble
- Homepage: https://github.com/oyooyo/simble#readme
- Issues: https://github.com/oyooyo/simble/issues
- npm.io page: https://npm.io/package/simble

## Dependencies (2)

- [debug](https://npm.io/package/debug.md) ^4.1.1
- [@abandonware/noble](https://npm.io/package/@abandonware/noble.md) ^1.9.2-9

## Alternatives

- [@lexical/table](https://npm.io/package/@lexical/table.md) — 3.0M weekly downloads
- [mantine-datatable](https://npm.io/package/mantine-datatable.md) — 98.2K weekly downloads
- [react-native-collapsible-tab-view](https://npm.io/package/react-native-collapsible-tab-view.md) — 70.6K weekly downloads
- [@handsontable/vue3](https://npm.io/package/@handsontable/vue3.md) — 16.1K weekly downloads
- [vuewordcloud](https://npm.io/package/vuewordcloud.md) — 7.2K weekly downloads

## Recent versions

- 0.2.6 (latest) — 2020-08-29
- 0.2.5 — 2019-02-25
- 0.2.3 — 2018-12-25
- 0.2.2 — 2018-12-25
- 0.2.1 — 2018-09-12
- 0.2.0 — 2018-09-11
- 0.1.2 — 2018-09-11
- 0.1.1 — 2018-09-07
- 0.1.0 — 2018-09-05
- 0.0.5 — 2017-03-07
- 0.0.4 — 2017-03-03
- 0.0.3 — 2017-03-03
- 0.0.2 — 2017-03-03
- 0.0.1 — 2017-03-03

## README

# simble

A *node.js* module for **sim**ple access to **ble** (Bluetooth Low Energy = Bluetooth 4.x) devices.

This module is a wrapper for sandeepmistry's great [*noble*](https://www.npmjs.com/package/noble) package, using Promises instead of callbacks and providing a somewhat different API.

## Usage example

The following code (written in *[CoffeeScript](https://coffeescript.org/)*) scans for a nearby Bluetooth LE peripheral that advertises the ["Heart Rate" Service (ID: 0x180D)](https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.service.heart_rate.xml). If such a peripheral is found, it requests the peripheral's ["Heart Rate Measurement" Characteristic (ID: 0x2A37)](https://www.bluetooth.com/specifications/gatt/viewer?attributeXmlFile=org.bluetooth.characteristic.heart_rate_measurement.xml) *(the peripheral will auto-connect, since a connection is required for accessing/requesting a Characteristic)*. It then subscribes to that characteristic; whenever updates arrive, it will print the current heart rate (byte 1 in the data) to the console.

    require("simble").subscribe_to_characteristic 0x180D, 0x2A37, (heart_rate_data) ->
      console.log("Heart rate: #{data[1]} bpm")

## API

Unfortunately, the API is not documented yet, so there's very little reason for others to use it yet. I published it because other node.js modules of mine require it.

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