Hello sorry for my english is not good!!
I am new with arduino!
i have an arduino ethernet shield and i run a code for 10 days correct and all it was good!
after 10 days my ethernet shield freezing!
into the code i do reset every 1 hour!but when the arduino freezing reset with software not work!
if i press the reset button all working but after i day stop again.
i think that arduino over flow.
can anyone help me???
ciric:
can anyone help me???
I think if you firmly think of your sketch code, any real mind reader will be able to.
Other peoples that are very bad in mind reading, perhaps only could help if you post the code and can see what it is about?
- time synchronizing for a clock with a NTP client?
- HTTP client?`
- HTTP webserver?
- sending/receiving packets with UDP?
- something else?
I am no mind reader.
I cannot help at the moment.
So it seems to be some kind of "HTTP webserver" application.
So what about the network configuration:
Is the network configured, that the webserver is only accessable from the local network?
Or is the network configured, that anybody from the Internet can access the webserver?
Making your webserver reachable from the Internet is maybe dangerous and might lock the simple webserver sketch without counter-measures against attackers!
Using dynamic "String" objects is always a bad idea in any case:
ciric:
String readString;
And you are wasting huge amounts of RAM sending literal strings like that:
client.println("GET /nic/update?hostname=ciric87.ddns.net HTTP/1.0");
You'd do much better sending those literal strings from flash memory instead, easiest possibility:
client.println(F("GET /nic/update?hostname=ciric87.ddns.net HTTP/1.0"));
Use the F-macro with print and every literal string constant!
That will perhaps save enough memory, so that enough RAM is left for using "String" objects without RAM over-usage.
i will try
thank you again iam new with the forum and arduino
client.println(F("GET /nic/update?hostname=ciric87.ddns.net HTTP/1.0"));
When you use Serial.print use Serial.print(F(""));
when you use the F macro on client print it prints one byte at a time..... you may not want to use this with client.prints. It will take a really long time for the webpage to load/send anything
thanks for your anser
#7 below for how to post code using code tags.:
Do not cross-post. Other thread removed.