how do I get how much memory i`m using from the Arduino at the running time?
It seems to me that my arduino reached the maximum of the processing memory, because my program compiles and when I break its in parts, this works very well, but together the arduino shows such a big mess in the Serial monitor.
What can I do when arduino seems not suport my program? Can I double the processing and memory putting two Arduino`s boards working together?
int get_free_memory()
{
extern int __heap_start, *__brkval;
int v;
return (int) &v - (__brkval == 0 ? (int) &__heap_start : (int) __brkval);
}
Then at strategic points add the line Serial.println(get_free_memory(),DEC);
A quick solution to free up some memory is to enclose any constant strings such as: Serial.print("Some text item");
within the F macro thus Serial.print( F("Some text item") );
I have a quick question about TCP/IP protocols. I am modifying the web server program that came in the arduino library.The code I've written so far is only 14,840 bytes. The Unos memory can hold 32,256 bytes though. The problem I am having is I've reached a point where anymore code causes the Serial Monitor to say "please update Wi-Fi firmware" even though it has clearly been upgraded. If I // parts of the code I can add more code without this happening, and the use of booleans seems to be the main culprit. The only thing worse than booleans, is if I try to make the code "cleaner" by compacting it like
I am completely new to programming, but I have watched a few youtube videos on TCP/IP protocols. To my understanding, its basically the same process as mailing a letter. You have to put a stamp on the letter, write who it is to, and who sent it, put it in an packet then put several packets into an envelope or mailbox whichever is considered more appropriate, then the mailman transports the envelope etc.
I just don't know where to start the De-bugging process. Do I need a bigger envelope, a bigger package to hold the envelopes, or a bigger/more mailmen..... and how do I address that? I feel somewhat confident in understanding the basics of the code i've written. However, it isn't clear how to assign bigger packets, or bigger/more mailmen. Youtube explained the basics of TCP/IP protocols, but I haven't yet found a reference on how to modify them "particular using arduino" probably in part because I don't know how to word what I need to search for.... Does the F macro work like using two mail serves like FedEx and UPS?