🔥 Removes stateful socket

This commit is contained in:
Rune Harlyk
2026-01-03 13:34:49 +01:00
committed by nikguin04
parent 8b12d4008e
commit 568fa93368
6 changed files with 3 additions and 74 deletions
-2
View File
@@ -31,13 +31,11 @@ void safe_sensor_return() { xSemaphoreGiveRecursive(cameraMutex); }
CameraService::CameraService()
: endpoint(CameraSettings::read, CameraSettings::update, this),
_eventEndpoint(CameraSettings::read, CameraSettings::update, this, EVENT_CAMERA_SETTINGS),
_persistence(CameraSettings::read, CameraSettings::update, this, CAMERA_SETTINGS_FILE) {
addUpdateHandler([&](const std::string &originId) { updateCamera(); }, false);
}
esp_err_t CameraService::begin() {
_eventEndpoint.begin();
_persistence.readFromFS();
camera_config_t camera_config;
camera_config.ledc_channel = LEDC_CHANNEL_0;