Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MAX30101 MAX30003 MAX113XX_Pixi MAX30205 max32630fthr USBDevice
ble_comm.cpp
- Committer:
- Mahir Ozturk
- Date:
- 2018-07-19
- Revision:
- 14:37542841f707
- Parent:
- 13:fba77a5d0fa0
File content as of revision 14:37542841f707:
/*
* ble_comm.cpp
*
* Created on: Jun 21, 2018
* Author: Mahir.Ozturk
*/
/******************************************************************************/
#include <mbed.h>
#include "ble_comm.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;
}