-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Ledcontrol in Sd card #6
Comments
This is not supported at the moment, if I remember correctly. Functions can only be associated to pages stored in flash. I am currently away, I will check better when I'm home, in a week or so. |
A workaround is to make the following variable public instead of private |
Uhm, and where do you do that? I don't think any hacks are necessary, this should be pretty straightforward to do with the last code refactoring I did. I will have a look at it ASAP. |
Thanks for your work, it's a great project |
This should be done with 3c51945, please check out the current See the |
Hello!! I have tested the modifications and it still does not work using the sd card, only work with flash |
A quick test I did works instead. Can you please post your sketch? |
@jmcastillejo: Make sure to associate the function with |
if I change the FlashFileFuncAssoc function by FileFuncAssoc I get the following error: src / WebbinoCore / WebServer.h: 101: 60: note: in definition of macro 'FileFuncAssoc'
exit status 1 |
Try something like:
|
With that it compiles well, it executes the function in the http request but the tags do not work, and in the chrome the save window appears as when entering the url. This is the sketch:
|
I run the webbino server on a stm32 bluepill with an sdcard, but I can not get server requests to work. it works if I use flash storage, but not when I use storage on sdcard.
In the example ledcontrol the function ledToggle is called from this line:
const Page page01 PROGMEM = {index_html_name, index_html, index_html_len, ledToggle};
how do I call that function when I use sdcard storage?
Thank you
The text was updated successfully, but these errors were encountered: