Skip to content
Discussion options

You must be logged in to vote

No this won’t work. If you do not add the handler you won’t get any event.
I think you are trying to solve a use case / need by using a wrong direction. Handlers are better set at once before begin. You then have several mechanisms to decide whether you want to activate them or not.
maybe if you explain what you want to achieve I could help you go in the right direction

I’m building an Internet radio using the ESP32-S3. I use AsyncWebServer to provide two functionalities: a) importing playlists from the Internet to flash memory, and b) serving the radio user interface.

The playlist import page is activated under certain conditions in the setup routine, right after calling server.begin(…

Replies: 1 comment 5 replies

Comment options

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

@mathieucarbou
Comment options

@cniedzi
Comment options

@mathieucarbou
Comment options

Answer selected by cniedzi
@cniedzi
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