STWIN.box - Getting data without generating .dat files with the tfp-sns-datalog2 repository
Hi everyone,
I have a STWIN.BOX (STEVAL-STWINBX1) and I have played around with the code examples in Python provided on the tfp-sns-datalog2 repository. The idea is to use this device to provide readings to a Raspberry Pi board and make some decisions based on the data.
I am not an expert in Python, but I coded a simple script to read the sensors using the repository, getting the hsdatalog_cli.py as an example, and using this data as input to the Raspberry Pi board.
The thing is, I can read the sensors only if I start logging (using the start_log method provided by the script hsdatalog_cli.py), and since the log has started, it will generate .dat files. So, every time I run the algorithm inside the Raspberry Pi, new .dat files are generated, and the file sizes depend on how long the board is running the algorithm.
I have tried to get data from the sensors without starting logging, but I have failed.
Is there any way of getting data from the sensors without generating the dat files?
Thanks in advance!
