From 37df52d4ee3e287e133f4eb4e912d75b1e8ca299 Mon Sep 17 00:00:00 2001 From: Gowtham Anandha Babu Date: Wed, 21 Dec 2016 20:05:16 +0530 Subject: [PATCH] [Bluetooth] Fix EntryPoint error because of CAPI mismatch Change-Id: Idb09e74f92e1ebf29151e95c3a7fc3d01fb7d0d2 Signed-off-by: Gowtham Anandha Babu --- Tizen.Bluetooth/Interop/Interop.Bluetooth.cs | 4 ++-- Tizen.Bluetooth/Tizen.Bluetooth/BluetoothGattImpl.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 Tizen.Bluetooth/Interop/Interop.Bluetooth.cs mode change 100644 => 100755 Tizen.Bluetooth/Tizen.Bluetooth/BluetoothGattImpl.cs diff --git a/Tizen.Bluetooth/Interop/Interop.Bluetooth.cs b/Tizen.Bluetooth/Interop/Interop.Bluetooth.cs old mode 100644 new mode 100755 index 81aaf74..842e8f6 --- a/Tizen.Bluetooth/Interop/Interop.Bluetooth.cs +++ b/Tizen.Bluetooth/Interop/Interop.Bluetooth.cs @@ -589,8 +589,8 @@ internal static partial class Interop [DllImport(Libraries.Bluetooth, EntryPoint = "bt_gatt_server_send_response")] internal static extern int BtGattServerSendResponse(int requestId, int requestType, int offset, int status, byte[] value, int valueLen); - [DllImport(Libraries.Bluetooth, EntryPoint = "bt_gatt_server_notify")] - internal static extern int BtGattServerNotify(BluetoothGattAttributeHandle characteristicHandle, bool sendIndication, BtGattServerNotificationSentCallback callback, string clientAddress, IntPtr userData); + [DllImport(Libraries.Bluetooth, EntryPoint = "bt_gatt_server_notify_characteristic_changed_value")] + internal static extern int BtGattServerNotify(BluetoothGattAttributeHandle characteristicHandle, BtGattServerNotificationSentCallback callback, string clientAddress, IntPtr userData); } } diff --git a/Tizen.Bluetooth/Tizen.Bluetooth/BluetoothGattImpl.cs b/Tizen.Bluetooth/Tizen.Bluetooth/BluetoothGattImpl.cs old mode 100644 new mode 100755 index 450169b..6ed552f --- a/Tizen.Bluetooth/Tizen.Bluetooth/BluetoothGattImpl.cs +++ b/Tizen.Bluetooth/Tizen.Bluetooth/BluetoothGattImpl.cs @@ -109,7 +109,7 @@ namespace Tizen.Network.Bluetooth internal void SendNotification(BluetoothGattCharacteristic characteristic, string clientAddress) { - int err = Interop.Bluetooth.BtGattServerNotify(characteristic.GetHandle(), false, null, clientAddress, IntPtr.Zero); + int err = Interop.Bluetooth.BtGattServerNotify(characteristic.GetHandle(), null, clientAddress, IntPtr.Zero); GattUtil.ThrowForError(err, string.Format("Failed to send value changed notification for characteristic uuid {0}", characteristic.Uuid)); } @@ -125,7 +125,7 @@ namespace Tizen.Network.Bluetooth } }; - int err = Interop.Bluetooth.BtGattServerNotify(characteristic.GetHandle(), true, cb, clientAddress, IntPtr.Zero); + int err = Interop.Bluetooth.BtGattServerNotify(characteristic.GetHandle(), cb, clientAddress, IntPtr.Zero); GattUtil.ThrowForError(err, string.Format("Failed to send value changed indication for characteristic uuid {0}", characteristic.Uuid)); return tcs.Task; -- 2.7.4