Warning: This project is mostly frustration driven and exists because the official Brainbit SDK is terrible.
Yes, it works for the developers on their system, but for anyone else — good luck.
I made this during the Cybergarden hackathon mostly because the official (and proprietary) compiled SDK samples are literally terrifying and not cross-platform.
Here’s what I had to face:
- Terrible documentation.
- Generated CMake and nothing was actually tested on linux
- Terrible examples and samples. They don’t even compile because the developer assumed everyone uses VS 2019 & Windows, and refuses to fix it for others.
- Example
CMakeLists.txtdidn’t even includeproject()orcmake_minimum_required(). - The compiled SDK has issues with Linux D-Bus interface (you’ll see if you try to launch it).
- The device itself is unreliable: disconnects and freezes a lot, often gives fake or inconsistent data.
This project is my attempt to make something usable across Windows and Linux (which really failed because it's incredibly hard to work with a proprietary SDK and a half-working device).
- Opens a socket on port 9900.
- Exposes all SDK callbacks to a client.
- Cross-platform compilation (Windows & Linux) using meson and bat/sh scripts.
- Requires a Bluetooth LE interface, the device doesn’t broadcast itself
- Meson build system
- Ninja (or any build backend supported by Meson)
- Bluetooth LE interface
- Brainbit device