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);
const onBatterySlotsChange = (value, timestamp) => {
console.log(value, timestamp);
};
COBI.batteryController.slots.read(onBatterySlotsChange); // Instantly get the current value
COBI.batteryController.slots.subscribe(onBatterySlotsChange);
COBI.batteryController.slots.unsubscribe(onBatterySlotsChange);