Hi, im testing a web server that load .htm pages from a micro sd card using a Arduino Mega and Ethernet Shield w5100, it works, but sometines take a very long time to load or the page dont load, when my wi-fi signal is low this happen more, i tried using the web server like the arduino examples, whit the html code in the arduino’s code and i dont have the problem, i would apreciate if something can help me to know what happen, i think can be a problem reading the files from the micro sd but im not sure, thanks.
I might have missed something but did you forget to post your code?
pylon: I might have missed something but did you forget to post your code?
I used the example of this tutorial to load the pages from the sd http://startingelectronics.com/tutorials/arduino/ethernet-shield-web-server-tutorial/SD-card-web-server-image/ .
Did the IP address in that code really match your network setup?
it works, but sometines take a very long time to load or the page dont load, when my wi-fi signal is low this happen more
How does the Wifi come into that equation? Didn't you connect the accessing PC to the network by cable? We usually don't do WiFi network debugging in this forum.
The sketch you linked to uses the String class exactly the way it should never be used. You should try to eliminate the String class completely because it's implemented in a way not suitable for microcontrollers without a MMU. Additionally it suffers from a memory leak bug still contained in the current versions of the IDE. This results in unexpected behavior and crashes after a few runs of your loop routine.
Test code for faster downloading of files from the SD card to a browser.