Go Down

Topic: How to send data to a webserver w/o uing the "client.print" command? (Read 843 times) previous topic - next topic


I'm working in a project to display the status and activation time of several digital inputs in a webserver based in an Arduino UNO + Ethernet shield + RTC module.
The problem I have is that the SRAM of the Arduino UNO gets easily full due to the "client.print" command line sed to display the data in the webserver. Because of this, I am currently analysing the possibility of programming a webserverd stored in the Ethernet shiled's SD card, inspired in the TinyWebServer.
The question I have is how to send Arduino data to the webserver without using the "client.print" comand line. Any suggestion to start?
(I'm not a HTML or Java expert)

Thank you very much.

James C4S


F() keeps the const char in PROGMEM.
Capacitor Expert By Day, Enginerd by night.  ||  Personal Blog: www.baldengineer.com  || Electronics Tutorials for Beginners:  www.addohms.com


Below is a short example of the F() progmem macro.

Code: [Select]

          client.println(F("<TITLE>Arduino GET test page</TITLE>"));

          client.println(F("<H1>Zoomkat's simple Arduino button</H1>"));
          client.println(F("<a href='/?on''>ON</a>"));
          client.println(F("<a href='/?off''>OFF</a>"));

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   8)


The problem is not with the client.print() or client.println() function taking space in SRAM. It is with the constant data being printed being stored in SRAM that can be a problem.

Code: [Select]
will use no SRAM.

Not that sending one character at a time is good idea, but it illustrates a point.

Go Up