# Examples of 1.5.2 The nine examples of alex2node 1.5.2, as they were. They run on 2.0 through its compat layer, which keeps the 1.x API: `registerDevice()`, `addCapability()`, the `Event` and `ReportState` listeners, `getStatusMessage()` and `getErrorMessage()`. `test/examples.test.js` starts each of them and compares its discovery answer with the one 1.5.2 gave; 2.0 adds the `Alexa` interface at the end of the capabilities and changes nothing else in them. They read `MQTT_USERNAME`, `MQTT_PASSWORD` and `MQTT_ROOT_TOPIC` from the environment or from a `.env` file, with `dotenv`, which is a development dependency of this repository. For a new program use the examples one directory up. [docs/wire-changes.md](../../docs/wire-changes.md) lists what a 1.x program can observe of 2.0.