"use strict"; // A device that is on no bridge. What a device declares and the discovery JSON it answers with need no broker. const { Device } = require("alex2node"); /** The arguments Device takes before the name are the broker client of 1.x, ignored, and the root topic of its bridge. */ function endpoint(endpointId = "lamp-1", name = "Lamp", categories = ["LIGHT"]) { return new Device(null, "root", name, endpointId, categories); } module.exports = { endpoint };