mirror of
https://github.com/Smartphone-Companions/ESP32-ANCS-Notifications.git
synced 2025-01-22 11:28:29 +00:00
commit
5d8259a886
@ -3,7 +3,9 @@
|
||||
|
||||
#include "ble_notification.h"
|
||||
|
||||
#include "FreeRTOS.h" // For asynchronous tasks
|
||||
#include "freertos/FreeRTOS.h" // For asynchronous tasks
|
||||
#include "freertos/task.h"
|
||||
#include "Arduino.h"
|
||||
|
||||
class BLEAddress;
|
||||
class BLERemoteCharacteristic;
|
||||
|
@ -108,11 +108,13 @@ bool BLENotifications::begin(const char * name) {
|
||||
BLEDevice::setSecurityCallbacks(new NotificationSecurityCallbacks()); // @todo memory leak?
|
||||
|
||||
startAdvertising();
|
||||
return true;
|
||||
}
|
||||
|
||||
bool BLENotifications::stop() {
|
||||
ESP_LOGI(LOG_TAG, "stop()");
|
||||
BLEDevice::deinit(false);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user