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.9 to 1.2.0

10

CHANGES.txt

@@ -0,1 +1,11 @@

= 1.2.0 =
Added un-scanned Peripheral concept on Android #560 Thanks doug-a-brunner
Fixed failure to fire callbacks on Android when read or write in flight #561 Thanks doug-a-brunner
Fixed dangling promises when reconnecting Android #562 Thanks doug-a-brunner
Added error when starting a scan while another is running Android #565 Thanks doug-a-brunner
Request MTU Size on Android #568 Thanks Domvel and Algoritma
Don't prompt user to enable Bluetooth on iOS CBCentralManagerOptionShowPowerAlertKey #580 #174 Thanks H0rst and cairinmichie
Implement showBluetoothSettings on iOS #591 Thanks cairinmichie
Improve disconnect logic on Android #582
= 1.1.9 =

@@ -2,0 +12,0 @@ iOS error #558

2

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

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

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

_This plugin isn't intended for scanning beacons._ Try [cordova-plugin-ibeacon](https://github.com/petermetz/cordova-plugin-ibeacon) for iBeacons.
_This plugin isn't intended for scanning beacons._ Try [cordova-plugin-ibeacon](https://github.com/petermetz/cordova-plugin-ibeacon) for iBeacons.<br/>
If you want to create Bluetooth devices, try [cordova-plugin-ble-peripheral](https://github.com/don/cordova-plugin-ble-peripheral).

@@ -71,2 +72,3 @@ See the [examples](https://github.com/don/cordova-plugin-ble-central/tree/master/examples) for ideas on how this plugin can be used.

- [ble.disconnect](#disconnect)
- [ble.requestMtu](#requestmtu)
- [ble.read](#read)

@@ -294,2 +296,25 @@ - [ble.write](#write)

## requestMtu
requestMtu
ble.requestMtu(device_id, mtu, [success], [failure]);
### Description
When performing a write request operation (write without response), the data sent is truncated to the MTU size.
This function may be used to request (on Android) a larger MTU size to be able to send more data at once.
#### iOS
`requestMtu` is not supported on iOS.
### Parameters
- __device_id__: UUID or MAC address of the peripheral
- __mtu__: MTU size
- __success__: Success callback function that is invoked when the connection is successful. [optional]
- __failure__: Error callback function, invoked when error occurs. [optional]
## read

@@ -447,2 +472,4 @@

NOTE that for many apps isConnected is unncessary. The app can track the connected state. Ater calling [connect](#connect) the app is connected when the success callback function is called. If the device disconnects at any point in the future, the failure callback of connect will be called.
### Parameters

@@ -546,6 +573,2 @@

#### iOS
`showBluetoothSettings` is not supported on iOS.
### Parameters

@@ -818,2 +841,3 @@

* [cordova-plugin-ble-peripheral](https://github.com/don/cordova-plugin-ble-peripheral) - Create and publish Bluetooth LE services on iOS and Android using Javascript.
* [BluetoothSerial](https://github.com/don/BluetoothSerial) - Connect to Arduino and other devices. Bluetooth Classic on Android, BLE on iOS.

@@ -820,0 +844,0 @@ * [RFduino](https://github.com/don/cordova-plugin-rfduino) - RFduino specific plugin for iOS and Android.

@@ -116,2 +116,6 @@ // (c) 2014-2016 Don Coleman

requestMtu: function (device_id, mtu, success, failure) {
cordova.exec(success, failure, 'BLE', 'requestMtu', [device_id, mtu]);
},
// characteristic value comes back as ArrayBuffer in the success callback

@@ -118,0 +122,0 @@ read: function (device_id, service_uuid, characteristic_uuid, success, failure) {

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