> For the complete documentation index, see [llms.txt](https://sryvkver.gitbook.io/cobi.bike/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sryvkver.gitbook.io/cobi.bike/namespaces/hub/motor-interface-ready.md).

# Motor Interface Ready

If the e-bike driver is available, up and running.&#x20;

When this is reported, you can be sure to be on an e-bike and can expect e-bike sepecific information (see motor).

{% tabs %}
{% tab title="Typescript" %}

```typescript
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);
```

{% endtab %}

{% tab title="Javascript" %}

```javascript
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);
```

{% endtab %}
{% endtabs %}
