Maxim Integrated's IoT development kit.

Dependencies:   MAX30101 MAX30003 MAX113XX_Pixi MAX30205 max32630fthr USBDevice

Revision:
15:0d47d5879a21
Parent:
13:fba77a5d0fa0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ble_gatt.cpp	Thu Jul 19 16:50:40 2018 +0300
@@ -0,0 +1,25 @@
+/*
+ * ble_comm.cpp
+ *
+ *  Created on: Jun 21, 2018
+ *      Author: Mahir.Ozturk
+ */
+/******************************************************************************/
+#include <mbed.h>
+#include "ble_gatt.h"
+
+Mutex ble_mutex;
+
+ble_error_t bleGattAttrWrite(GattAttribute::Handle_t handle, const uint8_t *value, uint16_t size)
+{
+	BLE &ble = BLE::Instance();
+	ble_error_t ret;
+
+	ble_mutex.lock();
+
+	ret = ble.gattServer().write(handle, value, size);
+
+	ble_mutex.unlock();
+
+	return ret;
+}