Get battery charge script
in Python
Would it be possible to have a simple Python script that allows you to read the battery status (signal creation, subscribe, read, unsubscribe and callback function), working?
In the API documentation and examples (including testing), even readjusting (obviously) the procedure seems not to work.
The battery is charged: checked with nRFconnect and official matewear app.
Attached is the file I'm working on (rename with .py extension).
Thanks in advance!
Comments
https://github.com/mbientlab/MetaWear-SDK-Cpp/blob/master/test/test_settings.py#L66
I had seen this example before and tried to implement it, but didn't read the values.
I recommend reading up on Python scripting.
Did you solve the problem? I have the same situation, I don´t understand the example in https://github.com/mbientlab/MetaWear-SDK-Cpp/blob/master/test/test_settings.py#L66
Here you are subscribing to the voltage and battery signal and then you simply read them once.