zwack
Version:
Simulate an indoor bicycle trainer with BLE (Bluetooth Low Energy)
17 lines (16 loc) • 697 B
JavaScript
class DIS {
constructor(options) {
options = options || { };
this.name = options.name || 'Zwack Device';
this.systemId = options.systemId || '0';
this.modelNumber = options.modelNumber || '0.1';
this.serialNumber = options.serialNumber || '0.1';
this.firmwareRevision = options.firmwareRevision || '0.1';
this.hardwareRevision = options.hardwareRevision || '0.1';
this.softwareRevision = options.softwareRevision || '0.1';
this.manufacturerName = options.manufacturerName || 'Acme Zwack Inc';
this.certification = options.certification || 0;
this.pnpId = options.pnpId || 0;
}
}
module.exports = DIS;