Skip to content

v0.5.0-beta - Data Logging

Pre-release
Pre-release
Compare
Choose a tag to compare
@fasteddy516 fasteddy516 released this 10 May 01:56
· 69 commits to master since this release

This version adds the ability to log serial data to a file (in addition to being displayed on-screen as usual). There were a fair number of under-the-hood changes required to implement this, so it is being released as a beta version first for anyone who wants to test the new functionality. If you try it and run into any problems, please report the issue here so it can be addressed as soon as possible.

There are three new command line arguments that can be used to control the new logging functionality:

-log:LOGFILE where LOGFILE is the name and path of the file you want to write to. If the file path contains spaces, it must be enclosed in quotation marks, i.e. -log:"C:\Path With Spaces\serial.log".

-logmode:MODE where MODE is OVERWRITE or APPEND. If no logmode is specified, SimplySerial will use OVERWRITE mode by default.

-logbuffer:VAL where VAL is an integer value between 0 and 100000. This is the number of bytes of serial data that will be buffered before writing it out to the log file. If no logbuffer value is specified, SimplySerial will default to a buffer size of 4096 bytes.