ojousima.ruuvi_endpoints.ts
Version:
Experiments with RuuviTags and TS
40 lines (39 loc) • 1.97 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.RuuviTagBroadcast = void 0;
var RuuviTagBroadcast = /** @class */ (function () {
function RuuviTagBroadcast(id, mac, temperatureC, pressurePa, humidityRh, batteryVoltageV, accelerationXG, accelerationYG, accelerationZG, movementCounter, measurementSequence, txPowerDBm, rssiDB, dataFormat, parsedAt) {
if (id === void 0) { id = 0; }
if (mac === void 0) { mac = null; }
if (temperatureC === void 0) { temperatureC = null; }
if (pressurePa === void 0) { pressurePa = null; }
if (humidityRh === void 0) { humidityRh = null; }
if (batteryVoltageV === void 0) { batteryVoltageV = null; }
if (accelerationXG === void 0) { accelerationXG = null; }
if (accelerationYG === void 0) { accelerationYG = null; }
if (accelerationZG === void 0) { accelerationZG = null; }
if (movementCounter === void 0) { movementCounter = null; }
if (measurementSequence === void 0) { measurementSequence = null; }
if (txPowerDBm === void 0) { txPowerDBm = null; }
if (rssiDB === void 0) { rssiDB = null; }
if (dataFormat === void 0) { dataFormat = null; }
if (parsedAt === void 0) { parsedAt = new Date(); }
this.id = id;
this.mac = mac;
this.temperatureC = temperatureC;
this.pressurePa = pressurePa;
this.humidityRh = humidityRh;
this.batteryVoltageV = batteryVoltageV;
this.accelerationXG = accelerationXG;
this.accelerationYG = accelerationYG;
this.accelerationZG = accelerationZG;
this.movementCounter = movementCounter;
this.measurementSequence = measurementSequence;
this.txPowerDBm = txPowerDBm;
this.rssiDB = rssiDB;
this.dataFormat = dataFormat;
this.parsedAt = parsedAt;
}
return RuuviTagBroadcast;
}());
exports.RuuviTagBroadcast = RuuviTagBroadcast;