This is the documentation for the latest development branch of MicroPython and may refer to features that are not available in released versions.

If you are looking for the documentation for a specific release, use the drop-down menu on the left and select the desired version.

thingz.thingz_log

Thingz Log

class thingz.thingz_log.Log

Save data inside Galaxia internal memory. The data is saved as CSV, at each boot the Galaxia transfer the internal file to USB mass storage as data.csv

add(data: list) None

Add data to log. The data must be in a list, each element is a tuple composed of the name of the column and the data associeted. OS EFBIG exception can be thrown if no space left in memory.

Parameters:

data (list) – The data to add

delete() None

Erase all the data saved in log.

set_columns(data: list) None

Create the columns of the CSV. The log reset every time the columns are redefined.

Parameters:

data (list) – The columns to create