Serialnumber
Provides the Serialnumber of the motor.
const onSerialnumberChange = (value: string, timestamp?: Date) => {
console.log(value, timestamp);
};
COBI.motor.serialNumber.read(onSerialnumberChange); // Instantly get the current value
COBI.motor.serialNumber.subscribe(onSerialnumberChange);
COBI.motor.serialNumber.unsubscribe(onSerialnumberChange);
const onSerialnumberChange = (value, timestamp) => {
console.log(value, timestamp);
};
COBI.motor.serialNumber.read(onSerialnumberChange); // Instantly get the current value
COBI.motor.serialNumber.subscribe(onSerialnumberChange);
COBI.motor.serialNumber.unsubscribe(onSerialnumberChange);
Last updated