diff options
author | chegewara <imperiaonline4@gmail.com> | 2018-11-30 10:59:14 +0100 |
---|---|---|
committer | chegewara <imperiaonline4@gmail.com> | 2018-11-30 10:59:14 +0100 |
commit | 934702b6169b92c71cbc850876fd17fb9ee3236d (patch) | |
tree | 048df4f7106cd4a574b609a13e62a36567f5a322 /examples/BLE_iBeacon/BLE_iBeacon.ino | |
parent | Upload of 0.4.16 (diff) | |
download | thermostat-934702b6169b92c71cbc850876fd17fb9ee3236d.tar.gz thermostat-934702b6169b92c71cbc850876fd17fb9ee3236d.tar.bz2 thermostat-934702b6169b92c71cbc850876fd17fb9ee3236d.zip |
Changes, bugfixes and updgrades. Library is ready to work with arduino-esp32 v1.0.1.
Diffstat (limited to 'examples/BLE_iBeacon/BLE_iBeacon.ino')
-rw-r--r-- | examples/BLE_iBeacon/BLE_iBeacon.ino | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/BLE_iBeacon/BLE_iBeacon.ino b/examples/BLE_iBeacon/BLE_iBeacon.ino index 5f6ed00..e43174d 100644 --- a/examples/BLE_iBeacon/BLE_iBeacon.ino +++ b/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 |