Thank you very much for your reply. I see what you mean.
So you recommend me to use ajax/javascript instead of php for the get and
post methods?
Concerning the led, once I parsed the ledstate variable, in my C program I
would just have to put something like:
if(ledstate==on)
{
toggle_led();
}
Is that correct ?
Another thing, if I have a webpage which asks the login and the password, I
understand how to check that login and password are correct but how would
you manage the redirection on the corresponding webpage (and display
dynamically "welcome 'LOGIN'")?
And at this point, if the C program manages the variables, I don't
understand why and how using the ajax script?
(I'm sorry for all these questions which may seem obvious but I'm a student
and it's quite new for me)
Funk, Artur wrote:
however, I don't know at all how to communicate with the board, I mean
for example, toggling a led clicking on a button of my webserver
You have to write a parser which is able to handle GET or POST packets
e.G. POST /ledpage.html?ledstate=on
I know there are a lot of projects which manages the toggling of diode
with this board but there isn't the source code of the web pages.
Take a look to STM32F107_LwIP_IAP_V1.0.0 there is a LwIP based HTTP
Server example to receive stm flash file via web
I don't know if it uses some javascript or cgi script files etc... php
isn't supported right?
It's bad because you will need it. I have used javascipt and ajax and it
works fine. For dynamic output you can use space holder in your html
code and replace these on runtime if required. PHP parser wouldn't fit
in a such device.
Best Regards
Artur Funk
_______________________________________________
lwip-users mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-users