If the e-bike driver is available, up and running.
When this is reported, you can be sure to be on an e-bike and can expect e-bike sepecific information (see motor).
const onMotorInterfaceReadyChange = (value: boolean, timestamp?: Date) => {
console.log(value, timestamp);
};
COBI.hub.motorInterfaceReady.read(onMotorInterfaceReadyChange); // Instantly get the current value
COBI.hub.motorInterfaceReady.subscribe(onMotorInterfaceReadyChange);
COBI.hub.motorInterfaceReady.unsubscribe(onMotorInterfaceReadyChange);
const onMotorInterfaceReadyChange = (value, timestamp) => {
console.log(value, timestamp);
};
COBI.hub.motorInterfaceReady.read(onMotorInterfaceReadyChange); // Instantly get the current value
COBI.hub.motorInterfaceReady.subscribe(onMotorInterfaceReadyChange);
COBI.hub.motorInterfaceReady.unsubscribe(onMotorInterfaceReadyChange);