C++ API v0.2.0

Version 0.2.0 of the C++ library is released.  A "How To" for the release is available on the project's GitHub Wiki: 

The C# wrapper classes have been removed and will be placed in their own project.

Release Notes

https://github.com/mbientlab/Metawear-CppAPI/releases/tag/0.2.0

Comments

  • A bug fix for v0.2.0 has been released addressing a crash that would occasionally occur when using PInvoke on Windows Phone 8.1.

  • edited October 2015
    Hi Eric,

    In the section where we need to "add Bluetooth LE code":
    static void write_to_mw_service(const MblMwMetaWearBoard* board, 
    const uint8_t* command, uint8_t len) {
    // put code that writes to the MetaWear Gatt service here
    }
    Do you have an example of writing to the MetaWear gatt service?  Am I supposed to call "gatttool" here?

    Sidd
  • edited October 2015
    If you're writing a C/C++ app, then write_to_mw_service will make calls to the appropriate functions of your Bluetooth library e.g. BlueZ or Windows Driver.  If you're writing C# or Python, then you will assign a delegate or CFUNCTYPE respectively that writes to the gatt service.

    The C# wrapper project has an example of assigning a delegate that implements the send_command function prototype, link here.
This discussion has been closed.