Next Service

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);
pageServiceTrigger
Example Response
{
    "timestamp": 1470000000,
    "distance": 3000
}

Last updated