MetaWear Python SDK - Linux / Windows - Python3
OTHER License
Bot releases are visible (Hide)
Published by lkasso over 3 years ago
Release for MMS support:
Published by lkasso almost 4 years ago
Published by mbientlab over 5 years ago
Published by mbientlab almost 6 years ago
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)
Published by scaryghost almost 6 years ago
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.
Published by mbientlab about 6 years ago
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.
Published by mbientlab over 6 years ago
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.
Due to the aforementioned updates, there are breaking changes in this release.
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.
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'})
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.
Published by mbientlab almost 7 years ago
Underlying C++ SDK updated to v0.11.4
Published by mbientlab almost 7 years ago
v0.3.0 is a small update addressing compatibility issues with the MetaCloud SDK and adds device information fields to the MetaWear class.
info
field which is a dictionary holding the characteristic values of the Device Information GATT service
Published by mbientlab almost 7 years ago
Python SDK v0.2.0 incorporates the anonymous datasignal feature from C++ SDK v0.11 for cross platform data downloads and updates the code to work with Python3.
parse_value
method when casting int32 valuesPublished by mbientlab about 7 years ago
SDK v0.1.9 addresses a few bugs and improves overall SDK performance, particularly when updating firmware.
dependency_links
styling to accommodate both pip2 and pip3Published by mbientlab about 7 years ago
This is the first release of MbientLab's Python SDK for its MetaSensors devices. Tutorials and documentation are still being worked on though the examples folder has full, working sample code demonstrating how to use the SDK.
As this project is a wrapper around the C++ SDK, additional examples can be found in the C++ SDK's unit tests with regards to using the ctypes library to call into the C++ library.
Questions about the Python interface can be posted on our community forums.