Releases: mbientlab/MetaWear-SDK-Python
C++ SDK Update
MMS Release
Release for MMS support:
- Updated C++ SDK to v0.20.0
C++ SDK Update
- Updated C++ SDK to v0.19.1
- Update PyWarble, Warble and LIBBLECPP
- Python 3 only (Python2 is not supported)
- Windows is no longer supported
C++ SDK and Python Feature Update
Changes
- Added create_voidp and create_voidp_int
- These are helper functions to turn C lib callback functions into Python synchronous functions
- See example scripts for a demo
- Updated C++ SDK to v0.18.2
- Added new example scripts
C++ SDK Update
v0.6.2 is a bug fix release that updates the underlying C++ SDK to include a critical fix for the fuser processor (commit db15653)
C++ SDK 0.17.0 Update
v0.6.0 updates the underlying C++ SDK from v0.16.0 to v0.17.0 and fixes a path issue when building the C++ sdk on Win32.
Update To C++ SDK v0.16.0
v0.5.0 updates the underlying C++ SDK from v0.13.4 to v0.16.0, and ups the min required PyWarble library to v1.1.0.
C++ SDK and BLE Lib Update
v0.4.0 updates the underlying C++ SDK it is binding (v0.13.4) and replaces gattlib with our own BLE wrapper library, enabling the Python SDK to be used on Windows 10 (min FCU) devices as well.
Changes
Due to the aforementioned updates, there are breaking changes in this release.
C++ SDK
C++ SDK v0.12.0 added an extra void*
parameter to functions / types containing function pointers (see specifics in the SDK release notes). As this SDK is a wrapper around the underlying C++ code, developers must update their bindings with the new types and parameters. Python does not require use of the new context
parameter so it can be set to None.
See the diff for multi_device.py for an example of the change.
MetaWear Class
The new Linux ble library chooses hci devices based on their mac address instead of their name. To accommodate this change, the device
option for the MetaWear constructor function has been renamed to hci_mac.
For example, given this hciconfig out:
hci0: Type: Primary Bus: USB
BD Address: 9C:B6:D0:15:FC:A0 ACL MTU: 1024:8 SCO MTU: 50:8
UP RUNNING
RX bytes:71588 acl:18 sco:0 events:2181 errors:0
TX bytes:2187 acl:18 sco:0 commands:127 errors:0
You would create a MetaWear
object for that hci device as follow:
device = MetaWear(address, **{'hci_mac': '9C:B6:D0:15:FC:A0'})
BLE Scanning
As with previous releases, scanning is done using the underlying BLE library. Refer to the updated scan_connect.py and PyWarble's lescan.py scripts for examples.
Updated C++ SDK Reference
Underlying C++ SDK updated to v0.11.4
Feature and Compatibility Update
v0.3.0 is a small update addressing compatibility issues with the MetaCloud SDK and adds device information fields to the MetaWear class.
Changes
- Added
info
field which is a dictionary holding the characteristic values of the Device Information GATT service- See the scan_connect.py script for sample code
- Changed Python SDK serialization format to include device information
- Old *.bin files will be automatically removed by the SDK after a deserialization
- Fixed compatibility issue with the MetaCloud SDK where Python would not properly parse two modules with the same parent module