diff options
author | dakkar <dakkar@thenautilus.net> | 2019-02-22 12:39:08 +0000 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2019-02-22 12:39:08 +0000 |
commit | 67a9dbb8e33e2bbb785e6a16a6ce5837c1a46c97 (patch) | |
tree | 0f5b064f03372305369a41b10e157aa89552e2f0 /sensor/patchedBLE/examples/BLE_iBeacon | |
parent | uni-init BLE before sleeping (diff) | |
parent | Merge pull request #23 from tatsutaigu/master (diff) | |
download | thermostat-67a9dbb8e33e2bbb785e6a16a6ce5837c1a46c97.tar.gz thermostat-67a9dbb8e33e2bbb785e6a16a6ce5837c1a46c97.tar.bz2 thermostat-67a9dbb8e33e2bbb785e6a16a6ce5837c1a46c97.zip |
Merge commit 'b232e7f5f0e87f36afbc2f4e03a2c49c48dd47bc'
Diffstat (limited to 'sensor/patchedBLE/examples/BLE_iBeacon')
-rw-r--r-- | sensor/patchedBLE/examples/BLE_iBeacon/BLE_iBeacon.ino | 5 |
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 |