I'm trying to work out the best way to put this project together. Any guidance / tips would be appreciated.
I currently have a device built which detects when an input changes and uploads the value to a php file for processing and storage to a database. I want to expand on this and make it so that it logs the change locally and uploads it and so that if the connection is not available it will continue to log the states / values and upload once a connection is restored.
- So something happens / state changes / value is periodically recorded.
- Store value to SD card
- Attempt to upload value
- If upload successful add marker to value to indicate it has been uploaded
- Check to see if any other values need uploaded and if so upload them and mark as uploaded
If somebody could help with breaking this down i think it'd help me. I've made a few projects interfacing to the web but not so much with SD card and RTC (required to timestamp the logged events).
If you need more information i'm happy to provide,
thanks in advance!