Sha256: bd1fbaf435f0cbbd134cb802592881f552da9000eb7e12a07a415bb1ab5d75dc

Contents?: true

Size: 690 Bytes

Versions: 2

Compression:

Stored size: 690 Bytes

Contents

(function (exports) {

    var device_model_simulation = {

        temperature: '31.4',
        exttemperature: '25.3',
        rotation: '20',
        vacuum: '976'

    };

    exports.init = function (eventbus) {

        setInterval(function () {
            mystring = device_model_simulation.rotation + ";" + device_model_simulation.temperature + ";" + device_model_simulation.exttemperature + ";" + device_model_simulation.vacuum;
            eventbus.emit("device.reply", "heartbeat", mystring);
        }, 1000);

        eventbus.emit("serial.simulation");
        eventbus.emit("serial.portopened");

    };

})(typeof exports == 'undefined' ? this['simulator'] = {} : exports);

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dial_a_device_node-0.0.154 app/assets/javascripts/dial_a_device_node/devices/heidolph_SIM.js
dial_a_device_node-0.0.153 app/assets/javascripts/dial_a_device_node/devices/heidolph_SIM.js