Skip to content

Launching two servers sequentially on the same port #121

Answered by mathieucarbou
cniedzi asked this question in Q&A
Discussion options

You must be logged in to vote

like this:

    server.on("/", HTTP_GET, [](AsyncWebServerRequest *request) {
      request->send(200, "text/plain", "Hello, world");
    }).setFilter([](AsyncWebServerRequest *request) {
      bool activated = ...
      return activated;
    });

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@cniedzi
Comment options

@mathieucarbou
Comment options

@cniedzi
Comment options

@mathieucarbou
Comment options

Answer selected by cniedzi
@cniedzi
Comment options

@cniedzi
Comment options

@mathieucarbou
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants