lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Dynamic web pages with lwip1.3.2


From: Sanchayan
Subject: Re: [lwip-users] Dynamic web pages with lwip1.3.2
Date: Thu, 09 Aug 2012 08:43:45 +0530
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:13.0) Gecko/20120614 Thunderbird/13.0.1

Hello,

You are using the STM32F107, i understand. For what you are trying to do, is available as an example source code on TI's Stellaris LM3S6965 and other Stellaris platforms. Have a look at their enet_io example code in their Stellarisware package. You should be able to download that on just registering. May be you can just go through that code base, to see how the parser and GET requests are handled. A demo on CGI/SSI and Javascript is available in that. It might help.

--
Thanks & Regards,
Sanchayan Maity.


On 08-08-2012 20:37, nicostage wrote:
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






Disclaimer: This message (including any attachments) contains confidential information and is intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action based on the contents of this information is strictly prohibited. If you have received this email in error please notify address@hidden Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Godrej & Boyce Mfg. Co. Ltd. group of companies. The recipient should check this email and any attachments for the presence of viruses. Godrej & Boyce Mfg. Co. Ltd. group of companies accepts no liability for any damage caused by any virus transmitted by this email.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]