smartmeter2mqtt
Version:
Publish data from your Smartmeter with a P1 interface to your MQTT server.
36 lines • 1.31 kB
JavaScript
;
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
return extendStatics(d, b);
};
return function (d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
})();
Object.defineProperty(exports, "__esModule", { value: true });
var events_1 = require("events");
/**
* Base Output class, extend this class to create a new output.
*/
var Output = /** @class */ (function (_super) {
__extends(Output, _super);
/**
* You can override the constructor,
* but this makes sure you can never create a new instance of 'Output'
*/
function Output() {
var _this = _super.call(this) || this;
if (_this.constructor === Output) {
throw new Error("Abstract classes can't be instantiated.");
}
return _this;
}
return Output;
}(events_1.EventEmitter));
exports.default = Output;
//# sourceMappingURL=output.js.map