Initial implementation of CSV file writer / transmitter. But now the sketch is too big. :(
Atempting to make the sketch size small enough to fit Uno.
More work to reduce the sketch size.
Switched the SD library to Fat16 library.
Remove usage of sprintf.
Reduce string sizes.
Shaved a couple hundred more bytes off... but I really need to dust something big. :(
The SNTP utility library is about 6K, so maybe we can shrink that down somehow.
Made some great progress reducing the sketch size by using a custom SNTP request function and started debugging issues around string buffer writing and SD card usage.
Added padding option to cbPrintInt and use it for timestamps and filenames.
Use byte instead of short here and use the appropriate max filename size for this char buffer.
Get the correctly string formatted filename from dir.name.
Don't include the null character when returning lengths written to string buffers.
Clean up log messages a bit.
Only report CSV files.
Always append to files. There may still be an issue with writing excessive carriage returns...
Fix problems with my initial form post code. This should now at least be sending a properly formatted HTTP request, though Hakase is not yet recognizing the file upload form data.
Testing if putting delays between CC3000 writes improves stability... And other HTTP request cleanups.
Doing what I can to bring down the sketch size, I suspect I am running out of SRAM that is causing it to be unstable.
More work reducing SRAM usage.
I think I got things working now! Reduced footprint and debug messages. Correctly watches for HTTP 200 response.
Use actual strings here because they are equal or less bytes in the sketch.
Fix temperature calculation.
Enable sntp code again.