Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-ble-central

Package Overview
Dependencies
Maintainers
1
Versions
72
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.1.1 to 1.1.2

8

CHANGES.txt

@@ -0,1 +1,9 @@

= 1.1.2 =
Call connect failure callback for peripheral if user disables Bluetooth #264
Fix iOS problem with multiple keys in service data #288 Thanks Lebbeous Fogle-Weekley
Add errorMessage to JSON object that is returned (to connect failure callback) when a peripheral disconnects
Call gatt.disconnect() before gatt.close() to get problematic devices to disconnect #221, #254, #214
Include version of JavaScript API with promises #247 Thanks Kelly Campbell
stopNotification on Android writes DISABLE_NOTIFICATION_VALUE to the descriptor #225 Thanks zjw1918
= 1.1.1 =

@@ -2,0 +10,0 @@ Update advertising data in peripheral while scanning (Android) #253

2

package.json
{
"name": "cordova-plugin-ble-central",
"version": "1.1.1",
"version": "1.1.2",
"description": "Bluetooth Low Energy (BLE) Central Plugin",

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

@@ -145,3 +145,3 @@ # Bluetooth Low Energy (BLE) Central Plugin for Apache Cordova

ble.startScan(services, options, success, failure);
ble.startScanWithOptions(services, options, success, failure);

@@ -701,3 +701,4 @@ ### Description

# Background Notifications on iOS
<a name="background-notifications-on-ios">
# Background Scanning and Notifications on iOS

@@ -722,2 +723,4 @@ Android applications will continue to receive notification while the application is in the background.

See [ble-background](https://github.com/don/ble-background) example project for more details.
# Testing the Plugin

@@ -724,0 +727,0 @@

@@ -165,1 +165,82 @@ // (c) 2014-2016 Don Coleman

};
module.exports.withPromises = {
scan: module.exports.scan,
startScan: module.exports.startScan,
startScanWithOptions: module.exports.startScanWithOptions,
connect: module.exports.connect,
startNotification: module.exports.startNotification,
startStateNotifications: module.exports.startStateNotifications,
stopScan: function() {
return new Promise(function(resolve, reject) {
module.exports.stopScan(resolve, reject);
});
},
disconnect: function(device_id) {
return new Promise(function(resolve, reject) {
module.exports.disconnect(device_id, resolve, reject);
});
},
read: function(device_id, service_uuid, characteristic_uuid) {
return new Promise(function(resolve, reject) {
module.exports.read(device_id, service_uuid, characteristic_uuid, resolve, reject);
});
},
write: function(device_id, service_uuid, characteristic_uuid, value) {
return new Promise(function(resolve, reject) {
module.exports.write(device_id, service_uuid, characteristic_uuid, value, resolve, reject);
});
},
writeWithoutResponse: function (device_id, service_uuid, characteristic_uuid, value) {
return new Promise(function(resolve, reject) {
module.exports.writeWithoutResponse(device_id, service_uuid, characteristic_uuid, value, resolve, reject);
});
},
stopNotification: function (device_id, service_uuid, characteristic_uuid) {
return new Promise(function(resolve, reject) {
module.exports.stopNotification(device_id, service_uuid, characteristic_uuid, resolve, reject);
});
},
isConnected: function (device_id) {
return new Promise(function(resolve, reject) {
module.exports.isConnected(device_id);
});
},
isEnabled: function () {
return new Promise(function(resolve, reject) {
module.exports.isEnabled(resolve, reject);
});
},
enable: function () {
return new Promise(function(resolve, reject) {
module.exports.enable(resolve, reject);
});
},
showBluetoothSettings: function () {
return new Promise(function(resolve, reject) {
module.exports.showBluetoothSettings(resolve, reject);
});
},
stopStateNotifications: function () {
return new Promise(function(resolve, reject) {
module.exports.stopStateNotifications(resolve, reject);
});
},
readRSSI: function(device_id) {
return new Promise(function(resolve, reject) {
module.exports.readRSSI(device_id);
});
}
}

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