diff options
author | kolban <kolban1@kolban.com> | 2017-10-13 13:26:21 -0500 |
---|---|---|
committer | kolban <kolban1@kolban.com> | 2017-10-13 13:26:21 -0500 |
commit | 98cd2290d036a4e27db061a76a512b526ef1cc14 (patch) | |
tree | 8c9264eb6af3a1fcffce84befded491a8af4517f /examples/BLE_write | |
parent | Sync for 0.4.4 (diff) | |
download | thermostat-98cd2290d036a4e27db061a76a512b526ef1cc14.tar.gz thermostat-98cd2290d036a4e27db061a76a512b526ef1cc14.tar.bz2 thermostat-98cd2290d036a4e27db061a76a512b526ef1cc14.zip |
Sync for 0.4.5
Diffstat (limited to 'examples/BLE_write')
-rw-r--r-- | examples/BLE_write/BLE_write.ino | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/BLE_write/BLE_write.ino b/examples/BLE_write/BLE_write.ino index ed5ebc6..24a0cd2 100644 --- a/examples/BLE_write/BLE_write.ino +++ b/examples/BLE_write/BLE_write.ino @@ -7,8 +7,6 @@ #include <BLEUtils.h> #include <BLEServer.h> -BLEDevice ble; - // See the following for generating UUIDs: // https://www.uuidgenerator.net/ @@ -41,9 +39,8 @@ void setup() { Serial.println("4- Go to CUSTOM CHARACTERISTIC in CUSTOM SERVICE and write something"); Serial.println("5- See the magic =)"); - //ble.begin("MyESP32"); - ble.init("MyESP32"); - BLEServer *pServer = new BLEServer(); + BLEDevice::init("MyESP32"); + BLEServer *pServer = BLEDevice::createServer(); BLEService *pService = pServer->createService(SERVICE_UUID); |