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:
- 54:bae48224c2f9
- Parent:
- 52:94638d2461c1
- Child:
- 55:0e4db6804c8d
--- a/btle/src/btle.cpp	Tue Sep 30 14:38:48 2014 +0000
+++ b/btle/src/btle.cpp	Wed Oct 01 05:39:59 2014 +0000
@@ -73,8 +73,7 @@
 /**************************************************************************/
 void btle_init(bool isSetAddress)
 {
-  DEBUG("btle_init>>\n\r");
-  const char *name = "TEST123";
+  DEBUG("btle_init>>\n\r"); 
   tHalUint8 *bleAddr;
   int ret;
   uint16_t service_handle, dev_name_char_handle, appearance_char_handle;
@@ -251,8 +250,9 @@
                                         
                                         BlueNRGGattServer::getInstance().handleEvent(GattServerEvents::GATT_EVENT_DATA_WRITTEN, evt->attr_handle);
                                         //Write the actual Data to the Attr Handle? (uint8_1[])evt->att_data contains the data
-                                        if ((p_char->getValuePtr() != NULL) && (p_char->getInitialLength() > 0)) {
-                                            BlueNRGGattServer::getInstance().updateValue(p_char->getHandle(), p_char->getValuePtr(), p_char->getInitialLength(), false /* localOnly */);
+                                        if ((p_char->getValueAttribute().getValuePtr() != NULL) && (p_char->getValueAttribute().getInitialLength() > 0)) {
+                                            BlueNRGGattServer::getInstance().updateValue(p_char->getValueAttribute().getHandle(), 
+                                            p_char->getValueAttribute().getValuePtr(), p_char->getValueAttribute().getInitialLength(), false /* localOnly */);
                                         }
                               } 
                             }                  
    