Short Version:
Does anyone have (or can point to) code for writing to a text file, then uploading the text file to a server? Likewise, am looking for code to download from a server and read the text file.
Details:
Good morning - this is probably something I could make myself but am not anxious to re-invent the wheel if someone has this and is interested in sharing.
I have two Arduinos that need to work off the same information. I am going to do this by having a text file sitting on a server at our school (I'm a teacher) and have each of the Arduinos (with a wifi shield) connect via the Internet to the server. All devices are behind the same firewall and visible to each other on the network.
Each Arduino needs to be able to download the file, work with the data, write new data, and upload the file to the server again. It should be assumed that sometimes the two Arduinos could try to write at the same time, though each will have a different time for executing this procedure which will hopefully help reduce this.
Each Arduino will check in every 5 minutes. The text file will be very small - time/date stamp, 7 one digit numbers, EOF character.
Thanks,
-- Markus