hbldh / pymetawear

Community developed SDK around the Python bindings for the C++ SDK

Home Page:https://hbldh.github.io/pymetawear/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Battery state cannot be read

hbldh opened this issue · comments

Reading battery state with

libmetawear.mbl_mw_settings_read_battery_state(c.board)

leads to exception in the C++ library:

terminate called after throwing an instance of 'std::out_of_range'
    what():  _Map_base::at

Added issue in C++ API: mbientlab/MetaWear-SDK-Cpp#2

This was due to error in my code. Can be done with new pygatt solution.