Installation
eeg-web-ble depends on eeg-web for shared frame types and the WASM module.
Requirements
- Browser with Web Bluetooth support (Chrome/Edge on desktop or Android)
- Served from a secure context (
https://) - Safari/iOS does not support Web Bluetooth — see platform notes for alternatives
Basic Usage
BleTransport Lifecycle
| Method | What it does |
|---|---|
connect() | Opens Bluetooth device picker, pairs, and prepares session |
start() | Begins EEG data stream; onFrame callbacks fire |
stop() | Stops the data stream; connection stays open |
disconnect() | Releases the Bluetooth session |
BleTransportOptions
| Option | Type | Description |
|---|---|---|
sourceName | string | Identifier included in HeadbandFrameV1.source |
deviceOptions | MuseDeviceOptions | Passed to underlying MuseBleDevice |
device | BleDeviceLike | Inject a custom device implementation |
Athena Support
Muse S headbands with Athena firmware require an Athena decoder factory:Device Info
After connecting, you can query device metadata:Next
Muse Device Details
Protocol details, characteristics, and compatibility
EEG + BLE Integration
End-to-end streaming and processing guide