Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reboot button does not work #2

Open
Frank-Bemelman opened this issue Jun 13, 2022 · 2 comments
Open

Reboot button does not work #2

Frank-Bemelman opened this issue Jun 13, 2022 · 2 comments

Comments

@Frank-Bemelman
Copy link

Frank-Bemelman commented Jun 13, 2022

First, thank you very much for this great example. It works quite well, and fiited well into my project involving modifying an old jukebox, rewiring the old buttons and finally serve audio files to a sonos box. I did not use the SPIFF but added an SD card for more storage.

I used the more fancy 2nd example and noticed the reboot button does not work at all.

In webpages.h
Line 29:
document.getElementById("statusdetails").innerHTML = "Invoking Reboot ...";

Changed into:
document.getElementById("details").innerHTML = "Invoking Reboot ...";

BTW, the conversion to SD card was easy. First I changed all SPIFFS references to SD. The only thing with SD.exists() and SD.remove() is that it wants a "/" in front of the filename, so I made some minor changes for that in webserver.ino

Thanks again, very happy with this!

Cheers,
Frank

@Jacker1505
Copy link

Can you please share the code for changing SPIFFS to SD.

@smford
Copy link
Owner

smford commented Sep 25, 2022

@Frank-Bemelman thank you for the feedback, I will make the change shortly.

Are you able to provide a code example for the change to SD card, I can include it in the examples to help others - or even link to your code hosted somewhere else. I don't have an SD card setup to test with.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants