Hi guys, I have two set of codes, the first one is the version 1.
Please check the first code in attachments, name: CODE1.
== The code above works perfectly, however, I need to do some modifications because the Facebook API doesn’t accept statuses that are similar. So I need to modify my codes above to pick a random string/status in a array of strings. This sketch by the way can be uploaded to the mega board within a couple of seconds.
Binary sketch size: 38,568 bytes (of a 258,048 byte maximum)
Ok, check this another one, smaller in sketch size:
Binary sketch size: 26,244 bytes (of a 258,048 byte maximum)
BUT, it takes forever to upload, in fact the Arduino IDE gave me a timeout.
Please check the code in attachments NAME: try. Message exceeds the max allowed length.
What can you suggest here? I suspect that this happens (forever-timeout uploading of sketch) because of my string arrays. If so, what are my options, or alternatives for the string arrays?
PS: don’t mind the declarations in Setup() method and don’t tell me to use for loops. I am doing this (again) for certain purposes.
CODE1.ino (9.07 KB)
try.ino (6.79 KB)