gjhn

Dependents:   BLE_GENERALE

Fork of X_NUCLEO_IDB0XA1 by ST

Revision:
228:25368f053411
Parent:
224:d8669b6b3175
Child:
229:9981f62cdb1a
--- 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 &);