📦 Moves templates
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#include <stateful_service.h>
|
#include <template/stateful_service.h>
|
||||||
#include <stateful_service_endpoint.h>
|
#include <template/stateful_endpoint.h>
|
||||||
#include <stateful_persistence.h>
|
#include <template/stateful_persistence.h>
|
||||||
#include <settings/ap_settings.h>
|
#include <settings/ap_settings.h>
|
||||||
#include <utils/timing.h>
|
#include <utils/timing.h>
|
||||||
#include <WiFi.h>
|
#include <WiFi.h>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#define Socket_h
|
#define Socket_h
|
||||||
|
|
||||||
#include <PsychicHttp.h>
|
#include <PsychicHttp.h>
|
||||||
#include <stateful_service.h>
|
#include <template/stateful_service.h>
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
#define NTPService_h
|
#define NTPService_h
|
||||||
|
|
||||||
#include <filesystem.h>
|
#include <filesystem.h>
|
||||||
#include <stateful_persistence.h>
|
#include <template/stateful_persistence.h>
|
||||||
#include <WiFi.h>
|
#include <WiFi.h>
|
||||||
#include <stateful_service_endpoint.h>
|
#include <template/stateful_endpoint.h>
|
||||||
#include <settings/ntp_settings.h>
|
#include <settings/ntp_settings.h>
|
||||||
|
|
||||||
#include <lwip/apps/sntp.h>
|
#include <lwip/apps/sntp.h>
|
||||||
|
|||||||
@@ -8,9 +8,9 @@
|
|||||||
|
|
||||||
#include <features.h>
|
#include <features.h>
|
||||||
#include <task_manager.h>
|
#include <task_manager.h>
|
||||||
#include <stateful_socket.h>
|
#include <template/stateful_socket.h>
|
||||||
#include <stateful_persistence.h>
|
#include <template/stateful_persistence.h>
|
||||||
#include <stateful_service_endpoint.h>
|
#include <template/stateful_endpoint.h>
|
||||||
|
|
||||||
#include <settings/camera_settings.h>
|
#include <settings/camera_settings.h>
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
#ifndef Peripherals_h
|
#ifndef Peripherals_h
|
||||||
#define Peripherals_h
|
#define Peripherals_h
|
||||||
|
|
||||||
#include <stateful_socket.h>
|
#include <template/stateful_socket.h>
|
||||||
#include <stateful_persistence.h>
|
#include <template/stateful_persistence.h>
|
||||||
#include <stateful_service.h>
|
#include <template/stateful_service.h>
|
||||||
#include <utils/math_utils.h>
|
#include <utils/math_utils.h>
|
||||||
#include <utils/timing.h>
|
#include <utils/timing.h>
|
||||||
#include <filesystem.h>
|
#include <filesystem.h>
|
||||||
#include <features.h>
|
#include <features.h>
|
||||||
#include <settings/peripherals_settings.h>
|
#include <settings/peripherals_settings.h>
|
||||||
#include <stateful_service_endpoint.h>
|
#include <template/stateful_endpoint.h>
|
||||||
|
|
||||||
#include <list>
|
#include <list>
|
||||||
#include <SPI.h>
|
#include <SPI.h>
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
|
|
||||||
#include <Adafruit_PWMServoDriver.h>
|
#include <Adafruit_PWMServoDriver.h>
|
||||||
#include <event_socket.h>
|
#include <event_socket.h>
|
||||||
#include <stateful_persistence.h>
|
#include <template/stateful_persistence.h>
|
||||||
#include <stateful_service.h>
|
#include <template/stateful_service.h>
|
||||||
#include <stateful_service_endpoint.h>
|
#include <template/stateful_endpoint.h>
|
||||||
#include <utils/math_utils.h>
|
#include <utils/math_utils.h>
|
||||||
#include <settings/servo_settings.h>
|
#include <settings/servo_settings.h>
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#include <utils/json_utils.h>
|
#include <utils/json_utils.h>
|
||||||
#include <utils/string_utils.h>
|
#include <utils/string_utils.h>
|
||||||
#include <utils/ip_utils.h>
|
#include <utils/ip_utils.h>
|
||||||
#include <state_result.h>
|
#include <template/state_result.h>
|
||||||
|
|
||||||
#include <DNSServer.h>
|
#include <DNSServer.h>
|
||||||
#include <IPAddress.h>
|
#include <IPAddress.h>
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
namespace Camera {
|
namespace Camera {
|
||||||
|
|
||||||
#include <ArduinoJson.h>
|
#include <ArduinoJson.h>
|
||||||
#include <state_result.h>
|
#include <template/state_result.h>
|
||||||
#include <esp_camera.h>
|
#include <esp_camera.h>
|
||||||
|
|
||||||
class CameraSettings {
|
class CameraSettings {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
#include <Arduino.h>
|
#include <Arduino.h>
|
||||||
#include <state_result.h>
|
#include <template/state_result.h>
|
||||||
#include <ArduinoJson.h>
|
#include <ArduinoJson.h>
|
||||||
|
|
||||||
#ifndef FACTORY_NTP_ENABLED
|
#ifndef FACTORY_NTP_ENABLED
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <ArduinoJson.h>
|
#include <ArduinoJson.h>
|
||||||
#include <state_result.h>
|
#include <template/state_result.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* I2C software connection
|
* I2C software connection
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <ArduinoJson.h>
|
#include <ArduinoJson.h>
|
||||||
#include <state_result.h>
|
#include <template/state_result.h>
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
float centerPwm;
|
float centerPwm;
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
#include <utils/json_utils.h>
|
#include <utils/json_utils.h>
|
||||||
#include <utils/ip_utils.h>
|
#include <utils/ip_utils.h>
|
||||||
#include <utils/string_utils.h>
|
#include <utils/string_utils.h>
|
||||||
#include <state_result.h>
|
#include <template/state_result.h>
|
||||||
|
|
||||||
#ifndef FACTORY_WIFI_SSID
|
#ifndef FACTORY_WIFI_SSID
|
||||||
#define FACTORY_WIFI_SSID ""
|
#define FACTORY_WIFI_SSID ""
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <PsychicHttp.h>
|
#include <PsychicHttp.h>
|
||||||
#include <stateful_service_endpoint.h>
|
#include <template/stateful_endpoint.h>
|
||||||
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
+1
-1
@@ -17,7 +17,7 @@
|
|||||||
**/
|
**/
|
||||||
|
|
||||||
#include <FS.h>
|
#include <FS.h>
|
||||||
#include <stateful_service.h>
|
#include <template/stateful_service.h>
|
||||||
#include <filesystem.h>
|
#include <filesystem.h>
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
+1
-1
@@ -24,7 +24,7 @@
|
|||||||
#include <freertos/FreeRTOS.h>
|
#include <freertos/FreeRTOS.h>
|
||||||
#include <freertos/semphr.h>
|
#include <freertos/semphr.h>
|
||||||
|
|
||||||
#include <state_result.h>
|
#include <template/state_result.h>
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
using JsonStateUpdater = std::function<StateUpdateResult(JsonObject &root, T &settings)>;
|
using JsonStateUpdater = std::function<StateUpdateResult(JsonObject &root, T &settings)>;
|
||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
#include <PsychicHttp.h>
|
#include <PsychicHttp.h>
|
||||||
|
|
||||||
#include <event_socket.h>
|
#include <event_socket.h>
|
||||||
#include <stateful_service.h>
|
#include <template/stateful_service.h>
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
class EventEndpoint {
|
class EventEndpoint {
|
||||||
@@ -7,9 +7,9 @@
|
|||||||
|
|
||||||
#include <filesystem.h>
|
#include <filesystem.h>
|
||||||
#include <utils/timing.h>
|
#include <utils/timing.h>
|
||||||
#include <stateful_service.h>
|
#include <template/stateful_service.h>
|
||||||
#include <stateful_persistence.h>
|
#include <template/stateful_persistence.h>
|
||||||
#include <stateful_service_endpoint.h>
|
#include <template/stateful_endpoint.h>
|
||||||
#include <settings/wifi_settings.h>
|
#include <settings/wifi_settings.h>
|
||||||
|
|
||||||
class WiFiService : public StatefulService<WiFiSettings> {
|
class WiFiService : public StatefulService<WiFiSettings> {
|
||||||
|
|||||||
Reference in New Issue
Block a user