"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var iotize_device_1 = require("../device/iotize-device");
var data_logger_1 = require("../device/datalogger/data-logger");
Object.defineProperty(iotize_device_1.IoTizeDevice.prototype, "datalogger", {
    get: function () {
        if (!this._datalogger) {
            this._datalogger = data_logger_1.DataLogger.fromTap(this, {
                period: 100 // TODO remove..
            });
        }
        return this._datalogger;
    },
    enumerable: false,
    configurable: true
});
iotize_device_1.IoTizeDevice.prototype.hasDatalogger = function () {
    return Boolean(this._datalogger);
};
