浏览代码

Include correct AsyncTCP header on ESP-32

Oxan van Leeuwen 5 年之前
父节点
当前提交
65ab7895af
共有 1 个文件被更改,包括 5 次插入0 次删除
  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: