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:
- 30:555e6697b368
- Parent:
- 29:1870b03aa25b
- Child:
- 31:46dff2d2dd4f
diff -r 1870b03aa25b -r 555e6697b368 btle/src/btle.cpp
--- a/btle/src/btle.cpp Thu Aug 21 07:42:06 2014 +0000
+++ b/btle/src/btle.cpp Thu Aug 21 10:03:17 2014 +0000
@@ -188,8 +188,7 @@
evt_le_connection_complete *cc = (evt_le_connection_complete *)evt->data;
BlueNRGGap::getInstance().setConnectionHandle(cc->handle);
- BlueNRGGap::getInstance().handleEvent(GapEvents::GAP_EVENT_CONNECTED);
-
+ BlueNRGGap::getInstance().handleEvent(GapEvents::GAP_EVENT_CONNECTED);
}
break;
}
@@ -225,13 +224,11 @@
| GattCharacteristic::BLE_GATT_CHAR_PROPERTIES_INDICATE))) {
//Now Check if data written in Enable or Disable
- if((uint16_t)evt->att_data[0]==1)
- {
+ if((uint16_t)evt->att_data[0]==1) {
//DEBUG("Notify ENABLED\n\r");
BlueNRGGattServer::getInstance().handleEvent(GattServerEvents::GATT_EVENT_UPDATES_ENABLED, evt->attr_handle);
}
- else
- {
+ else {
//DEBUG("Notify DISABLED\n\r");
BlueNRGGattServer::getInstance().handleEvent(GattServerEvents::GATT_EVENT_UPDATES_DISABLED, evt->attr_handle);
}
@@ -247,9 +244,7 @@
if ((p_char->getValuePtr() != NULL) && (p_char->getInitialLength() > 0)) {
BlueNRGGattServer::getInstance().updateValue(p_char->getHandle(), p_char->getValuePtr(), p_char->getInitialLength(), false /* localOnly */);
}
- }
-
- //Attribute_Modified_CB(evt->attr_handle, evt->data_length, evt->att_data);
+ }
}
break;
