Update esp32notifications.cpp

This commit is contained in:
Matthew 2023-04-27 00:56:00 +02:00 committed by GitHub
parent 30577c74b6
commit b0f92eaaaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
BLEDevice::deinit(false);
return true;
}