# sensorjs-ble

> BLE sensor networks and drivers for sensorjs

Latest version **0.0.1-0** (published 2014-08-19) · 0 weekly downloads

## Install

```sh
npm install sensorjs-ble
pnpm add sensorjs-ble
yarn add sensorjs-ble
bun add sensorjs-ble
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1-0 |
| Published | 2014-08-19 |
| First published | 2014-08-19 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.8.x |
| Dependencies | 4 |
| Known vulnerabilities | 0 (+6 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | daliworks |
| Maintainers | daliworks |
| Keywords | sensor, sensor.js, ble, driver |

## Links

- npm: https://www.npmjs.com/package/sensorjs-ble
- Repository: git@github.com:daliworks/sensorjs-ble
- Homepage: https://github.com/daliworks/sensorjs-ble
- Issues: https://github.com/daliworks/sensorjs-ble/issues
- npm.io page: https://npm.io/package/sensorjs-ble

## Dependencies (4)

- [async](https://npm.io/package/async.md) ~0.9.0
- [noble](https://npm.io/package/noble.md) 0.3.4
- [lodash](https://npm.io/package/lodash.md) ~2.4.1
- [log4js](https://npm.io/package/log4js.md) 0.6.16

## 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.0.1-0 (latest) — 2014-08-19

## README

# sensorjs-ble

BLE sensor networks and drivers for sensorjs

[https://github.com/daliworks/sensorjs](https://github.com/daliworks/sensorjs)

## Installation

    $ npm install sensorjs-ble

## Example
```js
var connect = require('sensorjs'),
    sensorApp = connect.sensor,
    bleSensor = require('sensorjs-ble');

sensorApp.addSensorPackage(bleSensor);

sensorApp.discover('sensorTagHum', function (err, devices) {
  'use strict';

  console.log('discovered devices', devices, err);

  devices.forEach(function (device) {
    device.sensorUrls.forEach(function (sensorUrl) {
      var sensor, parsedSensorUrl, props;

      sensor = sensorApp.createSensor(sensorUrl);

      parsedSensorUrl = sensorApp.parseSensorUrl(sensorUrl);

      props = sensorApp.getSensorProperties(parsedSensorUrl.model);

      if (props.onChange) {
        sensor.on('change', function (data) {
          console.log('[[ble sensor]] on change - data', data);
        });

        sensor.listen('change');
      } else {
        sensor.on('data', function(data) {
          console.log('[[ble sensor]] sensor data', data);
        });

        sensor.listen();
      }
    });
  });
});
```

## Contributor

[https://github.com/daliworks/sensorjs-ble/graphs/contributors](https://github.com/daliworks/sensorjs-ble/graphs/contributors)

## License 

(The MIT License)

Copyright (c) 2013 [Daliworks Inc](http://www.daliworks.co.kr)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


[@sensorjs](https://twitter.com/sensorjs)

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