Socket
Socket
Sign inDemoInstall

cordova-plugin-ble-central

Package Overview
Dependencies
Maintainers
2
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-ble-central - npm Package Compare versions

Comparing version 1.4.0 to 1.4.1-alpha.0

cordova-plugin-ble-central.iml

0

CHANGES.txt

@@ -0,0 +0,0 @@ = 1.4.0 =

@@ -0,0 +0,0 @@ ## Battery

@@ -0,0 +0,0 @@ // (c) 2014 Don Coleman

@@ -0,0 +0,0 @@ ## Adafruit UART

@@ -0,0 +0,0 @@ // (c) 2014 Don Coleman

@@ -0,0 +0,0 @@ BLE Heart Rate Demo

@@ -0,0 +0,0 @@ // (c) 2015 Don Coleman

@@ -0,0 +0,0 @@ ## MetaWare

@@ -0,0 +0,0 @@ // (c) 2014 Don Coleman

@@ -0,0 +0,0 @@ ## RedBearLab UART

@@ -0,0 +0,0 @@ // (c) 2014 Don Coleman

@@ -0,0 +0,0 @@ ## RFduino LED Button

@@ -0,0 +0,0 @@ // (c) 2014-2015 Don Coleman

@@ -0,0 +0,0 @@ # RoboSmart

@@ -0,0 +0,0 @@ // (c) 2014 Don Coleman

@@ -0,0 +0,0 @@ ## SensorTag

@@ -0,0 +0,0 @@ // (c) 2014 Don Coleman

@@ -0,0 +0,0 @@ ## SensorTag

@@ -0,0 +0,0 @@ // (c) 2014 Don Coleman

@@ -0,0 +0,0 @@ #!/usr/bin/env node

@@ -0,0 +0,0 @@ Copyright 2014-2020 Don Coleman

2

package.json
{
"name": "cordova-plugin-ble-central",
"version": "1.4.0",
"version": "1.4.1-alpha.0",
"description": "Bluetooth Low Energy (BLE) Central Plugin",

@@ -5,0 +5,0 @@ "cordova": {

@@ -70,2 +70,4 @@ # Bluetooth Low Energy (BLE) Central Plugin for Apache Cordova

If your app targets Android 12 (API level 31) or higher, you have to define BLUETOOTH_SCAN and BLUETOOTH_CONNECT permissions (https://developer.android.com/guide/topics/connectivity/bluetooth/permissions#declare-android12-or-higher) into your Android Manifest.
# API

@@ -203,3 +205,15 @@

- __options__: an object specifying a set of name-value pairs. The currently acceptable options are:
- _reportDuplicates_: true if duplicate devices should be reported, false (default) if devices should only be reported once. [optional]
* _reportDuplicates_: _true_ if duplicate devices should be reported, _false_ (default) if devices should only be reported once. [optional]
* _scanMode_: String defines [setScanMode()](https://developer.android.com/reference/kotlin/android/bluetooth/le/ScanSettings.Builder#setscanmode) argument on Android.
Can be one of: _lowPower_ | _balanced_ | _lowLatency_ | _opportunistic_
* _callbackType_: String defines [setCallbackType()](https://developer.android.com/reference/kotlin/android/bluetooth/le/ScanSettings.Builder#setcallbacktype) argument on Android.
Can be one of: _all_ | _first_ | _lost_
* _matchMode_: String defines [setMatchMode()](https://developer.android.com/reference/kotlin/android/bluetooth/le/ScanSettings.Builder#setmatchmode) argument on Android.
Can be one of: _aggressive_ | _sticky_
* _numOfMatches_: String defines [setNumOfMatches()](https://developer.android.com/reference/kotlin/android/bluetooth/le/ScanSettings.Builder#setnumofmatches) argument on Android.
Can be one of: _one_ | _few_ | _max_
* _phy_: String for [setPhy()](https://developer.android.com/reference/kotlin/android/bluetooth/le/ScanSettings.Builder#setphy) on Android.
Can be one of: _1m_ | _coded_ | _all_
* _legacy_: _true_ or _false_ to [control filtering](https://developer.android.com/reference/kotlin/android/bluetooth/le/ScanSettings.Builder#setlegacy) bluetooth spec.pre-4.2 advertisements on Android.
* _reportDelay_: Milliseconds for [setReportDelay()](https://developer.android.com/reference/kotlin/android/bluetooth/le/ScanSettings.Builder#setreportdelay) on Android. _0_ to be notified of results immediately. Values > _0_ causes the scan results to be queued up and delivered after the requested delay or when the internal buffers fill up.
- __success__: Success callback function that is invoked which each discovered device.

@@ -382,4 +396,22 @@ - __failure__: Error callback function, invoked when error occurs. [optional]

When Connecting to a peripheral android can request for the connection priority for better communication.
When Connecting to a peripheral android can request for the connection priority for better communication. See [BluetoothGatt#requestConnectionPriority](https://developer.android.com/reference/android/bluetooth/BluetoothGatt#requestConnectionPriority(int)) for technical details
Connection priority can be one of:
- `0` - [CONNECTION_PRIORITY_BALANCED](https://developer.android.com/reference/android/bluetooth/BluetoothGatt#CONNECTION_PRIORITY_BALANCED)
- `1` - [CONNECTION_PRIORITY_HIGH](https://developer.android.com/reference/android/bluetooth/BluetoothGatt#CONNECTION_PRIORITY_HIGH)
- `2` - [CONNECTION_PRIORITY_LOW_POWER](https://developer.android.com/reference/android/bluetooth/BluetoothGatt#CONNECTION_PRIORITY_LOW_POWER)
### Quick Example
ble.requestConnectionPriority(device_id, 0,
function() {
alert("success");
},
function(failure){
alert("Failed to request connection priority: " + failure);
}
);
### Supported Platforms

@@ -386,0 +418,0 @@

@@ -0,0 +0,0 @@ function notSupported() {

@@ -0,0 +0,0 @@ exports.defineAutoTests = function () {

@@ -0,0 +0,0 @@ // (c) 2014-2016 Don Coleman

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc