summaryrefslogtreecommitdiff
path: root/examples/BLE_notify
diff options
context:
space:
mode:
authorNeil Kolban <kolban1@kolban.com>2018-04-06 16:10:44 -0500
committerNeil Kolban <kolban1@kolban.com>2018-04-06 16:10:44 -0500
commitaf865a916795289c8e7e09b091ff2140c33fc3fe (patch)
tree6dea92b3b0bb6c5e0819d50dadaeafc009a5fb97 /examples/BLE_notify
parent0.4.11 - Fixes for privates in BLEAdvertising.h (diff)
downloadthermostat-af865a916795289c8e7e09b091ff2140c33fc3fe.tar.gz
thermostat-af865a916795289c8e7e09b091ff2140c33fc3fe.tar.bz2
thermostat-af865a916795289c8e7e09b091ff2140c33fc3fe.zip
Fixes for BLE_notify sample
Diffstat (limited to 'examples/BLE_notify')
-rw-r--r--examples/BLE_notify/BLE_notify.ino5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/BLE_notify/BLE_notify.ino b/examples/BLE_notify/BLE_notify.ino
index 57ad7a7..5e915be 100644
--- a/examples/BLE_notify/BLE_notify.ino
+++ b/examples/BLE_notify/BLE_notify.ino
@@ -23,7 +23,8 @@
#include <BLEUtils.h>
#include <BLE2902.h>
-BLEServer *pServer = NULL;
+BLEServer* pServer = NULL;
+BLECharacteristic* pCharacteristic = NULL;
bool deviceConnected = false;
bool oldDeviceConnected = false;
uint8_t value = 0;
@@ -61,7 +62,7 @@ void setup() {
BLEService *pService = pServer->createService(SERVICE_UUID);
// Create a BLE Characteristic
- BLECharacteristic * pCharacteristic = pService->createCharacteristic(
+ pCharacteristic = pService->createCharacteristic(
CHARACTERISTIC_UUID,
BLECharacteristic::PROPERTY_READ |
BLECharacteristic::PROPERTY_WRITE |