@ionic-native/ble

Ionic Native - Native plugins for ionic apps

Stats

StarsIssuesVersionUpdatedCreatedSize
@ionic-native/ble
2,0634635.36.02 months ago5 years agoMinified + gzip package size for @ionic-native/ble in KB

Readme

Improve this doc

BLE

$ ionic cordova plugin add cordova-plugin-ble-central
$ npm install @ionic-native/ble

Usage Documentation

Plugin Repo: https://github.com/don/cordova-plugin-ble-central

This plugin enables communication between a phone and Bluetooth Low Energy (BLE) peripherals.

The plugin provides a simple JavaScript API for iOS and Android.

  • Scan for peripherals
  • Connect to a peripheral
  • Read the value of a characteristic
  • Write new value to a characteristic
  • Get notified when characteristic's value changes

Advertising information is returned when scanning for peripherals. Service, characteristic, and property info is returned when connecting to a peripheral. All access is via service and characteristic UUIDs. The plugin manages handles internally.

Simultaneous connections to multiple peripherals are supported.

Supported platforms

  • Android
    • iOS

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.