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.
Dependents: Hello_BLE F446RE-BLE
Fork of X_NUCLEO_IDB0XA1 by
Diff: btle/src/btle.cpp
- Revision:
- 45:1fff7d7d5ce7
- Parent:
- 41:95b8d531628c
- Child:
- 52:94638d2461c1
--- a/btle/src/btle.cpp Thu Aug 28 12:42:30 2014 +0000
+++ b/btle/src/btle.cpp Fri Sep 05 06:41:21 2014 +0000
@@ -26,6 +26,7 @@
extern "C" {
#endif
+
/* C File Includes ------------------------------------------------------------------*/
#include "hal_types.h"
#include "hci.h"
@@ -39,7 +40,6 @@
#include "sm.h"
#include <stdio.h>
#include <string.h>
-#include <stm32l0xx_bluenrg_shield_bsp.h>
#include "role_type.h"
#include "debug.h"
@@ -73,8 +73,8 @@
/**************************************************************************/
void btle_init(bool isSetAddress)
{
- DEBUG("btle_init>>");
- const char *name = "STBlueNRG";
+ DEBUG("btle_init>>\n\r");
+ const char *name = "TEST123";
tHalUint8 *bleAddr;
int ret;
uint16_t service_handle, dev_name_char_handle, appearance_char_handle;
@@ -121,8 +121,8 @@
g_gap_service_handle = service_handle;
g_appearance_char_handle = appearance_char_handle;
g_device_name_char_handle = dev_name_char_handle;
- ret = aci_gatt_update_char_value(service_handle, dev_name_char_handle, 0,
- strlen(name), (tHalUint8 *)name);
+ /*ret = aci_gatt_update_char_value(service_handle, dev_name_char_handle, 0,
+ strlen(name), (tHalUint8 *)name);*/
return;
}
