I'm playing with a project where I want to control an output, (easy enough). Then I want to send an image from SPIFFS indicating the status of said output. IE: If a light is on, send a glowing lightbulb, conversely if it is off send a dim lightbulb. In addition provide a control button. I've built servers sending merely buttons, and I can send a spiff image using the method shown herehttps://randomnerdtutorials.com/display-images-esp32-esp8266-web-server/ without problems. Where my knowledge is lacking is; first, how to intigrate the image into an HTML document with the button control, and send it with the appropriate image(either/or). When experimenting with just sending an HTML referencing the image it doesn't come through, only the placeholder is shown.
Secondly I haven't been successful in serving different images on conditions. IE: Test flag for status, and send appropriate image. Just learning SPIFFS, and very new to HTML. Any help greatly appreciated.