Update Improv BLE component (#5518)

This commit is contained in:
Jesse Hills
2023-10-13 12:46:46 +13:00
committed by GitHub
parent 7c890d8ebc
commit 33ebfd221e
7 changed files with 79 additions and 39 deletions

View File

@@ -90,6 +90,8 @@ void BLEService::stop() {
ESP_LOGE(TAG, "esp_ble_gatts_stop_service failed: %d", err);
return;
}
esp32_ble::global_ble->get_advertising()->remove_service_uuid(this->uuid_);
esp32_ble::global_ble->get_advertising()->start();
this->running_state_ = STOPPING;
}