Range

Defines the range value in km of the eBike.

That means how many km you can travel with engine support.

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

COBI.motor.range.read(onRangeChange); // Instantly get the current value
COBI.motor.range.subscribe(onRangeChange);
COBI.motor.range.unsubscribe(onRangeChange);

Last updated