Forum Discussion
Altera_Forum
Honored Contributor
15 years agoI made it years ago with another processor. I never used Nios/Interniche for a webserver, so I really don't know if its capabilities are similar to that I used.
For such a function you have to generate the page dynamically, i.e. your http server must change some page contents before transmitting it to the stack. I did it with a template HTML page, where the info I had to replace dynamically was identified by some markers (special characters sequences). Then a special code processed the http text file during the transfer from memory to network stack, and replaced the markers with the required string (i.e. if a marker "@#4" was in the template HTML as a placeholder for the status of button 4, it was replaced with "ON" or "OFF").