I have modified the Ethernet web server example to learn more about processing POST data.
The compile completes with no errors and I am able to upload the sketch.
In Serial Monitor I see the server IP which is displayed by setup( ) is being repeated.
How do I debug what is causing this?
I have not opened a web browser to the Arduino web server.
The code is uploaded and that is it.
Nothing else.
-------------------------
server is at 192.168.2.50
-------------------------
start loop
start loop
start loop
start loop
start loop
start loop
start loop
start loop
start loop
start loop
start loop
start loop-------------------------
server is at 192.168.2.50
-------------------------
Please let me know what else you need to see.
The code. In code tags, please. (Use the full editor and look for the button that looks like </> )
It's flash problem.
avrdude: 12178 bytes of flash written; sketch runs
avrdude: 12200 bytes of flash written; sketch runs
avrdude: 12204 bytes of flash written; sketch runs
avrdude: 12206 bytes of flash written; sketch malfunctions
avrdude: 12212 bytes of flash written; sketch malfunctions
avrdude: 12258 bytes of flash written; sketch malfunctions
I am going in an commenting out Serial.println("1234567890"); to change sketch size.
Remember that those strings are copied into RAM so I suspect you are running out of RAM, not FLASH. For string constants in a .print() or .println() use the F() macro:
Serial.println(F("1234567890"));
That will keep those string constants from being copied to RAM.
Yeah, but with the Ethernet web server example nothing is happening unless a client connects.
I have not connected a client aka web browser yet.
So this is a sketch that is sitting there doing nothing.
I have just uploaded it.
I'll play with it some more and see what is happening.