From c223d74cf794481a990d392d73407422b72bc68f Mon Sep 17 00:00:00 2001 From: Klaus Sievers Date: Thu, 16 May 2024 15:40:02 +0200 Subject: [PATCH] fix: added mtu to success callback --- types.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types.d.ts b/types.d.ts index 0df93509..5a2f7d09 100644 --- a/types.d.ts +++ b/types.d.ts @@ -297,7 +297,7 @@ declare namespace BLECentralPlugin { /* 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. */ - requestMtu(device_id: string, mtu: number, success?: () => any, failure?: () => any): void; + requestMtu(device_id: string, mtu: number, success?: (mtu: number) => any, failure?: () => any): void; /* When Connecting to a peripheral android can request for the connection priority for faster communication. [iOS] requestConnectionPriority is not supported on iOS. */