Slots

Provides information about the amount of slots present in the eBike and how many are used.

const onBatterySlotsChange = (value: BatterySlots, timestamp?: Date) => {
    console.log(value, timestamp);
};

COBI.batteryController.slots.read(onBatterySlotsChange); // Instantly get the current value
COBI.batteryController.slots.subscribe(onBatterySlotsChange);
COBI.batteryController.slots.unsubscribe(onBatterySlotsChange);
pageBatterySlots
Example Response
{
    "count": 1,
    "used": 1
}

Last updated