mirror of
https://github.com/esphome/esphome.git
synced 2025-10-07 04:13:47 +01:00
[web_server] Use ESP-IDF web server for ESP32 Arduino builds
This commit is contained in:
@@ -13,6 +13,10 @@
|
|||||||
#include <utility>
|
#include <utility>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
||||||
|
#ifdef USE_ARDUINO
|
||||||
|
#include <WString.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace esphome {
|
namespace esphome {
|
||||||
#ifdef USE_WEBSERVER
|
#ifdef USE_WEBSERVER
|
||||||
namespace web_server {
|
namespace web_server {
|
||||||
@@ -85,6 +89,9 @@ class AsyncResponseStream : public AsyncWebServerResponse {
|
|||||||
void print(const char *str) { this->content_.append(str); }
|
void print(const char *str) { this->content_.append(str); }
|
||||||
void print(const std::string &str) { this->content_.append(str); }
|
void print(const std::string &str) { this->content_.append(str); }
|
||||||
void print(float value);
|
void print(float value);
|
||||||
|
#ifdef USE_ARDUINO
|
||||||
|
void print(const __FlashStringHelper *str) { this->content_.append(reinterpret_cast<PGM_P>(str)); }
|
||||||
|
#endif
|
||||||
void printf(const char *fmt, ...) __attribute__((format(printf, 2, 3)));
|
void printf(const char *fmt, ...) __attribute__((format(printf, 2, 3)));
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Reference in New Issue
Block a user