docs:blox:examples-logging

6.4.4 Logging data with BLOX

BLOX can be used to log sensor data, either for immediate review, or logged to SD Card for long term analysis


6.4.4.1 Logging to USB/Serial

You can log sensor values to the USB / Serial (for example to view sensor values in the Logs view)

TIP You can preface sensor log entry with a message to help make your logging easier to read


6.4.4.2 Logging to SD Card

You can log sensor data to an SD Card.

TIP: If you add Wifi and NTP the logged entry with show real world time stamps. If you don't have Wifi/NTP it will show the number of seconds since the firmware was booted up as a fallback without valid time.

In this example we've set it up with a check to see if the SD Card is available, and then schedule it to log the sensor value every 5 seconds.

You can use this for offline sensor analysis, graphing of values over time etc.

docs/blox/examples-logging.txt · Last modified: 2024/08/26 12:36 by admin