nathanas:
Do you know how to search for a word in a char array and get something if the word contains "example"???
You couldn't figure that out from my examples above?
if(strstr(tBuf,"example") != NULL) {
// example exists
}
Try using the F() function with your strings. That will save you some SRAM. I used it on just your response to the client, and it appears to get you under the limit. ![]()
Give me a minute to switch to my Ubuntu box. I'm typing on one, and programming on the other. I'll post an example.
edit: Here is an example, and it got me over 6000 bytes free.
client.println(F("<text STYLE=\"position:relative; TOP:50px; LEFT:50px; WIDTH:50px; HEIGHT:50px\">"));
client.println(F("<FORM ACTION=\"http://nathanas.dyndns.info:8070\" method=get >")); //SET THE DOMAIN
client.println(F("Username: <INPUT TYPE=TEXT NAME=\"username\" VALUE=\"\" SIZE=\"25\" MAXLENGTH=\"50\">
"));
client.println(F("Password: <INPUT TYPE=TEXT NAME=\"password\" VALUE=\"\" SIZE=\"25\" MAXLENGTH=\"50\">
"));
client.println(F("<text STYLE=\"position:relative; RIGHT:33px; TOP:10px; \"> "));
client.println(F("<INPUT TYPE=SUBMIT NAME=\"submit\" VALUE=\"Log In\">"));
client.println(F("</FORM>"));
client.println(F("</CENTER>"));
Do that to the rest, and you should be good to go!