27 lines
425 B
C
27 lines
425 B
C
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#include "app_config.h"
|
|
#include "app_error.h"
|
|
|
|
#include "nrf_ble_gatt.h"
|
|
#include "nrf_sdh_ble.h"
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
NRF_BLE_GATT_DEF(m_gatt); /**< GATT module instance. */
|
|
void le_gatt_init(void)
|
|
{
|
|
ret_code_t err_code = nrf_ble_gatt_init(&m_gatt, NULL);
|
|
APP_ERROR_CHECK(err_code);
|
|
}
|
|
|
|
uint16_t le_gatt_mtu(void)
|
|
{
|
|
return nrf_ble_gatt_eff_mtu_get(&m_gatt, 0);
|
|
}
|