Defines the number of supported drive modes by the eBike. I.e. 5.
const onDriveModesChange = (value: number, timestamp?: Date) => {
console.log(value, timestamp);
};
COBI.motor.supportedDriveModes.read(onDriveModesChange); // Instantly get the current value
COBI.motor.supportedDriveModes.subscribe(onDriveModesChange);
COBI.motor.supportedDriveModes.unsubscribe(onDriveModesChange);
const onDriveModesChange = (value, timestamp) => {
console.log(value, timestamp);
};
COBI.motor.supportedDriveModes.read(onDriveModesChange); // Instantly get the current value
COBI.motor.supportedDriveModes.subscribe(onDriveModesChange);
COBI.motor.supportedDriveModes.unsubscribe(onDriveModesChange);