8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f42b824 commit 7aaed6dCopy full SHA for 7aaed6d
cpp_utils/tests/BLETests/Arduino/BLE_notify/BLE_notify.ino
@@ -23,7 +23,8 @@
23
#include <BLEUtils.h>
24
#include <BLE2902.h>
25
26
-BLEServer *pServer = NULL;
+BLEServer* pServer = NULL;
27
+BLECharacteristic* pCharacteristic = NULL;
28
bool deviceConnected = false;
29
bool oldDeviceConnected = false;
30
uint8_t value = 0;
@@ -61,7 +62,7 @@ void setup() {
61
62
BLEService *pService = pServer->createService(SERVICE_UUID);
63
64
// Create a BLE Characteristic
- BLECharacteristic * pCharacteristic = pService->createCharacteristic(
65
+ pCharacteristic = pService->createCharacteristic(
66
CHARACTERISTIC_UUID,
67
BLECharacteristic::PROPERTY_READ |
68
BLECharacteristic::PROPERTY_WRITE |
0 commit comments