mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-17 00:51:07 +08:00
fix(bluetooth-le): add missing status type value and add missing (optional) address property to NotifyParams interface (#3613)
This commit is contained in:
parent
cc79a1edb7
commit
f32da73a87
@ -40,7 +40,8 @@ export type Status =
|
|||||||
| 'advertisingStarted'
|
| 'advertisingStarted'
|
||||||
| 'advertisingStopped'
|
| 'advertisingStopped'
|
||||||
| 'responded'
|
| 'responded'
|
||||||
| 'notified';
|
| 'notified'
|
||||||
|
| 'notificationSent';
|
||||||
|
|
||||||
/** Available connection priorities */
|
/** Available connection priorities */
|
||||||
export type ConnectionPriority = 'low' | 'balanced' | 'high';
|
export type ConnectionPriority = 'low' | 'balanced' | 'high';
|
||||||
@ -88,6 +89,8 @@ export interface NotifyParams {
|
|||||||
characteristic: string;
|
characteristic: string;
|
||||||
/** Base64 encoded string, number or string */
|
/** Base64 encoded string, number or string */
|
||||||
value: string;
|
value: string;
|
||||||
|
/** Android only: address of the device the notification should be sent to. */
|
||||||
|
address?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface RespondParams {
|
export interface RespondParams {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user