1 | ;
|
2 | var macaddress = require("macaddress");
|
3 | var Gateway = (function () {
|
4 | function Gateway() {
|
5 | var _this = this;
|
6 | this.type = 'EnergyGateway';
|
7 | this.password = '12345';
|
8 | macaddress.one(function (err, mac) {
|
9 | _this.vendorThingID = mac.replace(/:/g, '');
|
10 | });
|
11 | }
|
12 | return Gateway;
|
13 | }());
|
14 | exports.Gateway = Gateway;
|