ChargingSettings

data class ChargingSettings(val stayOnWhileCharging: Boolean, val idlePowerOffMinutes: Int)

The device's charging-settings service (stay-on-while-charging and idle power-off). Both values live in device RAM: they survive a disconnect but revert to the defaults (off, 20 min) at power-off.

Constructors

Link copied to clipboard
constructor(stayOnWhileCharging: Boolean, idlePowerOffMinutes: Int)

Properties

Link copied to clipboard

power off after this many minutes switched on with no host connected (1..255; the timer stops while a host is connected).

Link copied to clipboard

keep the headset on and connected while a charger is plugged in. Off (the default), plugging in a charger powers the ADC down, drops every connection and stops advertising for the whole charge. Set it BEFORE plugging in: the device acts on the charger within about 250 ms.