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: BLE_HeartRate_IDB0XA1
Fork of X_NUCLEO_IDB0XA1 by
Diff: x-nucleo-idb0xa1/BlueNRGGap.h
- Revision:
- 228:25368f053411
- Parent:
- 224:d8669b6b3175
- Child:
- 229:9981f62cdb1a
diff -r 624ae7aa567d -r 25368f053411 x-nucleo-idb0xa1/BlueNRGGap.h
--- a/x-nucleo-idb0xa1/BlueNRGGap.h Tue Apr 26 14:33:08 2016 +0200
+++ b/x-nucleo-idb0xa1/BlueNRGGap.h Tue Apr 26 14:44:54 2016 +0200
@@ -95,7 +95,7 @@
};
/* Functions that must be implemented from Gap */
- virtual ble_error_t setAddress(addr_type_t type, const Address_t address);
+ /*virtual ble_error_t setAddress(addr_type_t type, const Address_t address);*/
virtual ble_error_t getAddress(addr_type_t *typeP, Address_t address);
virtual ble_error_t setAdvertisingData(const GapAdvertisingData &, const GapAdvertisingData &);
virtual ble_error_t startAdvertising(const GapAdvertisingParams &);
@@ -160,7 +160,6 @@
bool _scanning;
bool _connecting;
bool isSetAddress;
- uint8_t *DeviceName;
uint8_t deviceAppearance[2];
uint8_t local_name_length;
@@ -177,9 +176,9 @@
BlueNRGGap() {
m_connectionHandle = BLE_CONN_HANDLE_INVALID;
- addr_type = BLEProtocol::AddressType::PUBLIC;
+ addr_type = BLEProtocol::AddressType::RANDOM_STATIC;
isSetAddress = false;
- DeviceName = NULL;
+ memset(deviceAppearance, 0, sizeof(deviceAppearance));
}
BlueNRGGap(BlueNRGGap const &);
