⚡ Removes PsychicHttp dependency
This commit is contained in:
@@ -2,52 +2,43 @@
|
||||
|
||||
#include <WiFi.h>
|
||||
#include <ArduinoJson.h>
|
||||
#include <PsychicHttp.h>
|
||||
#include <esp_http_server.h>
|
||||
#include "platform_shared/message.pb.h"
|
||||
|
||||
#define FT_ENABLED(feature) feature
|
||||
|
||||
// ESP32 camera off by default
|
||||
#ifndef USE_CAMERA
|
||||
#define USE_CAMERA 0
|
||||
#endif
|
||||
|
||||
// ESP32 IMU on by default
|
||||
#ifndef USE_MPU6050
|
||||
#define USE_MPU6050 0
|
||||
#endif
|
||||
|
||||
// ESP32 IMU on by default
|
||||
#ifndef USE_BNO055
|
||||
#define USE_BNO055 1
|
||||
#endif
|
||||
|
||||
// ESP32 magnetometer on by default
|
||||
#ifndef USE_HMC5883
|
||||
#define USE_HMC5883 0
|
||||
#endif
|
||||
|
||||
// ESP32 barometer off by default
|
||||
#ifndef USE_BMP180
|
||||
#define USE_BMP180 0
|
||||
#endif
|
||||
|
||||
// ESP32 SONAR off by default
|
||||
#ifndef USE_USS
|
||||
#define USE_USS 0
|
||||
#endif
|
||||
|
||||
// PCA9685 Servo controller on by default
|
||||
#ifndef USE_PCA9685
|
||||
#define USE_PCA9685 1
|
||||
#endif
|
||||
|
||||
// WS2812 LED strip off by default
|
||||
#ifndef USE_WS2812
|
||||
#define USE_WS2812 0
|
||||
#endif
|
||||
|
||||
// ESP32 MDNS on by default
|
||||
#ifndef USE_MDNS
|
||||
#define USE_MDNS 1
|
||||
#endif
|
||||
@@ -78,6 +69,6 @@ void features(JsonObject& root);
|
||||
|
||||
void features_request(const socket_message_FeaturesDataRequest& fd_req, socket_message_FeaturesDataResponse& fd_res);
|
||||
|
||||
esp_err_t getFeatures(PsychicRequest* request);
|
||||
esp_err_t getFeatures(httpd_req_t* request);
|
||||
|
||||
} // namespace feature_service
|
||||
|
||||
Reference in New Issue
Block a user