8000 Fixes on BLE_Notify · lebinlv/esp32-snippets@7aaed6d · GitHub
[go: up one dir, main page]

Skip to content

Commit 7aaed6d

Browse files
committed
Fixes on BLE_Notify
1 parent f42b824 commit 7aaed6d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cpp_utils/tests/BLETests/Arduino/BLE_notify/BLE_notify.ino

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
#include <BLEUtils.h>
2424
#include <BLE2902.h>
2525

26-
BLEServer *pServer = NULL;
26+
BLEServer* pServer = NULL;
27+
BLECharacteristic* pCharacteristic = NULL;
2728
bool deviceConnected = false;
2829
bool oldDeviceConnected = false;
2930
uint8_t value = 0;
@@ -61,7 +62,7 @@ void setup() {
6162
BLEService *pService = pServer->createService(SERVICE_UUID);
6263

6364
// Create a BLE Characteristic
64-
BLECharacteristic * pCharacteristic = pService->createCharacteristic(
65+
pCharacteristic = pService->createCharacteristic(
6566
CHARACTERISTIC_UUID,
6667
BLECharacteristic::PROPERTY_READ |
6768
BLECharacteristic::PROPERTY_WRITE |

0 commit comments

Comments
 (0)
0