brainaccess.core.charging_settings#

Classes#

ChargingSettings

Charging behavior settings of a headset.

Module Contents#

class brainaccess.core.charging_settings.ChargingSettings(enabled_on_while_charging=False, sleep_timeout=1)[source]#

Bases: ctypes.Structure

Charging behavior settings of a headset.

Read with get_charging_settings() and change with set_charging_settings().

Parameters:
  • enabled_on_while_charging (bool, optional) – Keep the headset on while a charger is connected. Default False. For development only, see the warning below.

  • sleep_timeout (int, optional) – Minutes of inactivity after which the headset goes to sleep, 0 to 255 (default 1). The headset treats 0 as 1.

Raises:

BrainAccessException – If sleep_timeout is outside 0 to 255.

Warning

Use enabled_on_while_charging for development only, never in normal use. Never record from a person while the headset is connected to a charger. The setting must be enabled before the charger is plugged in; otherwise the headset disconnects when charging starts.

Examples

>>> ChargingSettings(enabled_on_while_charging=False, sleep_timeout=15)
ChargingSettings(enabled_on_while_charging=False, sleep_timeout=15)
property enabled_on_while_charging: bool[source]#

Whether the headset stays on while a charger is connected.

With False (the default) the headset disconnects and stops advertising while it charges.

Warning

For development only; see ChargingSettings.

Return type:

bool

property sleep_timeout: int[source]#

Minutes of inactivity after which the headset goes to sleep (0 to 255).

Raises:

BrainAccessException – When set to a value outside 0 to 255.

Return type:

int