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 90ab225 commit bb8b670Copy full SHA for bb8b670
examples/NimBLE_Service_Data_Advertiser/NimBLE_Service_Data_Advertiser.ino
@@ -12,14 +12,15 @@
12
#define SERVICE_UUID "4fafc201-1fb5-459e-8fcc-c5c9c331914b"
13
14
static NimBLEUUID dataUuid(SERVICE_UUID);
15
-static NimBLEAdvertising *pAdvertising = NimBLEDevice::getAdvertising();
+static NimBLEAdvertising *pAdvertising = nullptr;
16
static uint32_t count = 0;
17
18
void setup() {
19
Serial.begin(115200);
20
Serial.println("Starting BLE work!");
21
22
NimBLEDevice::init("svc data");
23
+ pAdvertising = NimBLEDevice::getAdvertising();
24
}
25
26
void loop() {
0 commit comments