Express API Server exposing Meross device management endpoints.
const app = new App(3000);app.start(); // Starts server on port 3000 Copy
const app = new App(3000);app.start(); // Starts server on port 3000
Creates an App instance.
Optional
HTTP server port.
// Create server on default port 3000const app = new App();// Create server on custom portconst app = new App(8080); Copy
// Create server on default port 3000const app = new App();// Create server on custom portconst app = new App(8080);
Gracefully shuts down the Express server.
Resolves when server is closed
If server shutdown fails
await app.close(); Copy
await app.close();
Starts the Express server and connects to Meross Cloud.
const app = new App();app.start(); Copy
const app = new App();app.start();
Express API Server exposing Meross device management endpoints.
Public
Example