Skip to content

Commit bbf5dbe

Browse files
committed
Fix CI
1 parent 6e3a759 commit bbf5dbe

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

examples/EndBegin/EndBegin.ino

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,16 @@
66
//
77

88
#include <Arduino.h>
9+
#if defined(ESP32) || defined(LIBRETINY)
910
#include <AsyncTCP.h>
1011
#include <WiFi.h>
12+
#elif defined(ESP8266)
13+
#include <ESP8266WiFi.h>
14+
#include <ESPAsyncTCP.h>
15+
#elif defined(TARGET_RP2040) || defined(TARGET_RP2350) || defined(PICO_RP2040) || defined(PICO_RP2350)
16+
#include <RPAsyncTCP.h>
17+
#include <WiFi.h>
18+
#endif
1119

1220
#include <ESPAsyncWebServer.h>
1321

@@ -16,8 +24,14 @@ static AsyncWebServer server(80);
1624
void setup() {
1725
Serial.begin(115200);
1826

27+
#if SOC_WIFI_SUPPORTED || CONFIG_ESP_WIFI_REMOTE_ENABLED || LT_ARD_HAS_WIFI || CONFIG_ESP32_WIFI_ENABLED
1928
WiFi.mode(WIFI_AP);
2029
WiFi.softAP("esp-captive");
30+
#endif
31+
32+
server.on("/", HTTP_GET, [](AsyncWebServerRequest *request) {
33+
request->send(200, "text/plain", "Hello, world");
34+
});
2135

2236
server.begin();
2337
Serial.println("begin() - run: curl -v http://192.168.4.1/ => should succeed");

0 commit comments

Comments
 (0)