API Methods
All devices implement the base device interface. Base methods (connect, disconnect, notify, etc.) are available on every device. Some devices add methods like battery(), stream(), and led().
Connection
| Method | Description |
|---|---|
| connect | Connects to the device. Requires a user gesture and secure context. |
| disconnect | Disconnects and cleans up listeners and GATT. |
| isConnected | Returns whether the device is currently connected. |
Data and notifications
| Method | Description |
|---|---|
| notify | Sets the callback for real-time mass/force data. |
| active | Sets the callback for activity status (user pulling). |
Read / write
| Method | Description |
|---|---|
| read | Reads a GATT characteristic. |
| write | Writes to a GATT characteristic with optional response callback. |
Calibration and export
| Method | Description |
|---|---|
| tare | Starts tare (zero) calibration. Not all devices support this. |
| download | Exports session data as CSV, JSON, or XML. |
Device-specific methods
These methods are available only on certain devices. See each page for supported device classes.
| Method | Description |
|---|---|
| battery | Battery or voltage information. |
| stream | Start force stream. Use stop() to end. |
| led | Set LED color or route display. Signature varies by device. |
| stop | Stop an ongoing stream. |