brainaccess.core.charging_settings#
Classes#
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.StructureCharging behavior settings of a headset.
Read with
get_charging_settings()and change withset_charging_settings().- Parameters:
- Raises:
BrainAccessException – If
sleep_timeoutis outside 0 to 255.
Warning
Use
enabled_on_while_chargingfor 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:
- 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: