C++ Logging API in pymetawear

Hey Folks (Eric, most likely)

I am trying to log data for 10 seconds in python

https://pastebin.com/9hXgwfnj

This is my output

> python log MY:MAC:ADDRESS

139977681830112
Start Sleep!
Logging started! 33419136
Done with Sleep!
0 entries left
Done!
Done with Script!


Seems like nothing comes out of the log signal. I am not certain where to put mbl_mw_logging_start; what does it do exactly? I have been assuming it either enables you to start routing datasignals to log signals or that it reads all of the datasignals you have sub'd to log signals and then actually starts the logging.

I have been resetting regularly with:

address = sys.argv[1]
c = MetaWearClient(str(address), 'pygatt', debug=True, timeout=15)
libmetawear.mbl_mw_logging_clear_entries(c.board)
c.soft_reset()
c.disconnect()


I'm using Ubuntu 16.04

Comments

  • edited September 2017
    You need to start the accelerometer: mbl_mw_acc_start
  • edited September 2017
    https://lightspeedspanish.co.uk/wp-content/uploads/2013/09/veguenza-ajena.png

    Fixed it. A little embarrassed over here but thank you.
This discussion has been closed.