Skip to content

Commit b9b1139

Browse files
authored
Merge pull request #667 from lupalabs/fix/notify-type-add-address-to-parameter
Add missing optional address parameter to NotifyParams interface.
2 parents 8f0e6d5 + e3bba54 commit b9b1139

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
# Cordova Bluetooth LE Plugin
23
This plugin allows you to interact with Bluetooth LE devices on Android, iOS, and Windows.
34

@@ -2084,6 +2085,7 @@ var params = {
20842085
"service":"1234",
20852086
"characteristic":"ABCD",
20862087
"value":"U3Vic2NyaWJlIEhlbGxvIFdvcmxk" //Subscribe Hello World
2088+
// "address": "5163F1E0-5341-AF9B-9F67-613E15EC83F7" // only on android
20872089
};
20882090
```
20892091

types/index.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -667,7 +667,9 @@ declare namespace BluetoothlePlugin {
667667
/** Characteristic's UUID */
668668
characteristic: string,
669669
/** Base64 encoded string, number or string */
670-
value: string
670+
value: string,
671+
/** Android only: address of the device the notification should be sent to. */
672+
address?: string
671673
}
672674

673675
interface RespondParams {

0 commit comments

Comments
 (0)