hi all i am facing problem with webpage design with arduino uno and Ethernet shield. i am trying to make a web page with a 00 to 9 key pad and buttons for 8 switches to set their timing i have also button for ajust and apply. Nw the problem is that when i make more then 10 buttons i am unable to ping the server and the web doesnt open ether. i have tried alot but in vain.
client.println("
ADJUST
");
client.println("
APPLY
");
this is the script for adjust and apply button.
please help me on this topic or suggest a better way to do resolve this issue
and this is the html code
void val(void)
{
label:
EthernetClient client = server.available();
boolean current_line_is_first = true;
if (client) {
// an http request ends with a blank line
boolean current_line_is_blank = true;
while (client.connected()) {
if (client.available()) {
char c = client.read();
// if we've gotten to the end of the line (received a newline
// character) and the line is blank, the http request has ended,
// so we can send a reply
if (c == '\n' && current_line_is_blank) {
// send a standard http response header
client.println("HTTP/1.1 200 OK");
client.println("Content-Type: text/html");
client.println();
client.println("
You have 17 lines like this using over 2100 bytes of SRAM, plus the other client.println() lines, plus any other variables that your sketch and the libraries that you are using require. That has to come out of the 2048 bytes of SRAM that the Uno has. You could try using the F() macro, which keeps literal strings in the Flash memory area.
@dxwood thanx for your assistance that worked fine but my final program will be much longer then this one and space of ROM will be insufficient. so is there any way that i can use SD card for RAM purpose ???