Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • Thanks for the response and description @Majenko. I should have also mentioned this too but I was planning to also write the string of comma separated values to a microSD card. I thought it would be better to log the data once versus 8 times each void loop() - hence why creating the string might be optimal Commented Nov 8, 2020 at 12:26
  • 2
    Same thoughts apply for writing to SD. (file.print only writes to a buffer) You should consider calling flush or close/open less often than after every print, anyway. Commented Nov 8, 2020 at 12:34
  • Thanks @DataFiddler. I will try avoiding the building of strings and just submit to Serial/SD writing as data is ingested. Commented Nov 8, 2020 at 12:45