ESP8266 Webserver Guidance

gdsports,

Thanks for the information. I added the following to the existing sketch.

// handle "/"
  server.on("/T00", []() {
      startPlaying("T0.mp3");
      server.send(200, "text/plain", "playing T0.mp3");
  server.on("/T01", []() {
      startPlaying("T1.mp3");
      server.send(200, "text/plain", "playing T1.mp3");  
  server.on("/T02", []() {
      startPlaying("T2.mp3");
      server.send(200, "text/plain", "playing T2.mp3");
  server.on("/T03", []() {
      startPlaying("T3.mp3");
      server.send(200, "text/plain", "playing T3.mp3");          
  server.on("/T02", []() {
      startPlaying("T4.mp3");
      server.send(200, "text/plain", "playing T4.mp3");
  server.on("/T02", []() {
      startPlaying("T5.mp3");
      server.send(200, "text/plain", "playing T5.mp3");
  server.on("/T02", []() {
      startPlaying("T6.mp3");
      server.send(200, "text/plain", "playing T6.mp3");
  server.on("/T02", []() {
      startPlaying("T7.mp3");
      server.send(200, "text/plain", "playing T7.mp3");
  server.on("/T02", []() {
      startPlaying("T8.mp3");
      server.send(200, "text/plain", "playing T8.mp3");    
  server.on("/T02", []() {
      startPlaying("T9.mp3");
      server.send(200, "text/plain", "playing T9.mp3");

When I compile I receive this error:

doorSFX2_v2:427: error: expected ')' before 'inline'

 inline void webserver_loop(void) {

 ^

I added ")" before "inline" and then received this error:

doorSFX2_v2:427: error: expected ';' before 'inline'

 )inline void webserver_loop(void) {

  ^

Any ideas? Thank you.

DoorSFX_v3.txt (14.3 KB)