setInterval()

in sensor/index.js [41:53]


    setInterval(function(){

        msg.value = 75 + Math.floor((Math.random() * (10 - 1) + 1));
        msg.timestamp = new Date().getTime();
    
        var topic = VALUE_TOPIC.replace('[thingName]', settings.clientId);
    
        device.publish(topic, JSON.stringify(msg)); 
    
        console.log('published to topic ' + topic + ' ' + JSON.stringify(msg));


    }, VALUE_RATE);