Hello, I need a sample code to read the logged data on gpio pin.
First start here: https://mbientlab.com/tutorials/Apple.html
Since swift relies on the cpp, just use the python gpio example and translate it to swift. https://github.com/mbientlab/MetaWear-SDK-Cpp/blob/master/test/test_gpio.py
Add this bit to the started app from our tutorials/github in swift.
We also have the MetaBase iOS App for sale: https://mbientlab.com/store/metabase-license/
@Laura I have tried gpio with datasignal subscription (streaming mode). I'm using touch switch in one of my gpio pin. Can we log the data to device memory and download it back with logger subscription like we download the data on other sensors?
Yes, you can log gpio data. See our logging tutorials.
@Laura I tried the logging tutorial but it didn't work for the gpio. Where can I find a sample code for this?
You need to log using the timer module: https://github.com/mbientlab/MetaWear-SDK-Python/blob/master/examples/log_temp.py
This is a dev board, please try to debug and develop: https://github.com/mbientlab/MetaWear-SDK-Cpp/blob/master/test/test_logging.py
Comments
First start here: https://mbientlab.com/tutorials/Apple.html
Since swift relies on the cpp, just use the python gpio example and translate it to swift.
https://github.com/mbientlab/MetaWear-SDK-Cpp/blob/master/test/test_gpio.py
Add this bit to the started app from our tutorials/github in swift.
We also have the MetaBase iOS App for sale: https://mbientlab.com/store/metabase-license/
@Laura I have tried gpio with datasignal subscription (streaming mode). I'm using touch switch in one of my gpio pin. Can we log the data to device memory and download it back with logger subscription like we download the data on other sensors?
Yes, you can log gpio data. See our logging tutorials.
@Laura I tried the logging tutorial but it didn't work for the gpio. Where can I find a sample code for this?
You need to log using the timer module: https://github.com/mbientlab/MetaWear-SDK-Python/blob/master/examples/log_temp.py
This is a dev board, please try to debug and develop: https://github.com/mbientlab/MetaWear-SDK-Cpp/blob/master/test/test_logging.py