This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
docs:blox:examples-logging [2024/08/22 13:59] admin created |
docs:blox:examples-logging [2024/08/26 12:36] (current) admin |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== 6.4.4 Logging data with BLOX ====== | + | ====== 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 | BLOX can be used to log sensor data, either for immediate review, or logged to SD Card for long term analysis | ||
Line 5: | Line 5: | ||
---- | ---- | ||
- | ===== 6.4.4.1 | + | ===== 6.4.4.1 |
+ | 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. | ||
+ | |||
+ | {{: | ||