Provides information about the maintenance status of the bike; at which point in time and/or distance it is needed
const onNextServiceChange = (value: ServiceTrigger, timestamp?: Date) => {
console.log(value, timestamp);
};
COBI.motor.nextService.read(onNextServiceChange); // Instantly get the current value
COBI.motor.nextService.subscribe(onNextServiceChange);
COBI.motor.nextService.unsubscribe(onNextServiceChange);
const onNextServiceChange = (value, timestamp) => {
console.log(value, timestamp);
};
COBI.motor.nextService.read(onNextServiceChange); // Instantly get the current value
COBI.motor.nextService.subscribe(onNextServiceChange);
COBI.motor.nextService.unsubscribe(onNextServiceChange);