summaryrefslogtreecommitdiff
path: root/sensor/patchedBLE/examples/BLE_iBeacon/BLE_iBeacon.ino
diff options
context:
space:
mode:
Diffstat (limited to 'sensor/patchedBLE/examples/BLE_iBeacon/BLE_iBeacon.ino')
-rw-r--r--sensor/patchedBLE/examples/BLE_iBeacon/BLE_iBeacon.ino5
1 files changed, 2 insertions, 3 deletions
diff --git a/sensor/patchedBLE/examples/BLE_iBeacon/BLE_iBeacon.ino b/sensor/patchedBLE/examples/BLE_iBeacon/BLE_iBeacon.ino
index 5f6ed00..e43174d 100644
--- a/sensor/patchedBLE/examples/BLE_iBeacon/BLE_iBeacon.ino
+++ b/sensor/patchedBLE/examples/BLE_iBeacon/BLE_iBeacon.ino
@@ -18,7 +18,6 @@
#include "sys/time.h"
#include "BLEDevice.h"
-#include "BLEServer.h"
#include "BLEUtils.h"
#include "BLEBeacon.h"
#include "esp_sleep.h"
@@ -85,9 +84,9 @@ void setup() {
BLEDevice::init("");
// Create the BLE Server
- BLEServer *pServer = BLEDevice::createServer();
+ // BLEServer *pServer = BLEDevice::createServer(); // <-- no longer required to instantiate BLEServer, less flash and ram usage
- pAdvertising = pServer->getAdvertising();
+ pAdvertising = BLEDevice::getAdvertising();
setBeacon();
// Start advertising