Explorar o código

Include correct AsyncTCP header on ESP-32

Oxan van Leeuwen %!s(int64=5) %!d(string=hai) anos
pai
achega
65ab7895af
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      stream_server.h

+ 5 - 0
stream_server.h

@@ -22,7 +22,12 @@
 #include <string>
 #include <vector>
 #include <Stream.h>
+
+#ifdef ARDUINO_ARCH_ESP8266
 #include <ESPAsyncTCP.h>
+#else
+#include <AsyncTCP.h>
+#endif
 
 class StreamServerComponent : public esphome::Component {
 public: