Fork of the excellent esp8266-react - https://github.com/rjwats/esp8266-react
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
515 B

  1. #ifndef FeaturesService_h
  2. #define FeaturesService_h
  3. #include <Features.h>
  4. #ifdef ESP32
  5. #include <WiFi.h>
  6. #include <AsyncTCP.h>
  7. #elif defined(ESP8266)
  8. #include <ESP8266WiFi.h>
  9. #include <ESPAsyncTCP.h>
  10. #endif
  11. #include <ArduinoJson.h>
  12. #include <AsyncJson.h>
  13. #include <ESPAsyncWebServer.h>
  14. #define MAX_FEATURES_SIZE 256
  15. #define FEATURES_SERVICE_PATH "/rest/features"
  16. class FeaturesService {
  17. public:
  18. FeaturesService(AsyncWebServer* server);
  19. private:
  20. void features(AsyncWebServerRequest* request);
  21. };
  22. #endif