Accept Time Broadcasts

NodeJsController sending Time broadcasts every few minutes.
Sensor accepting not just Time messages addressed to the specific
sensor.
This commit is contained in:
ToSa27
2014-09-28 23:47:22 +02:00
parent 7a304a0523
commit c3dbcd1fea
2 changed files with 8 additions and 5 deletions
+3
View File
@@ -706,5 +706,8 @@ dbc.connect('mongodb://' + dbAddress + ':' + dbPort + '/' + dbName, function(err
} else {
throw new Error('unknown Gateway type');
}
setInterval(function() {
sendTime(BROADCAST_ADDRESS, NODE_SENSOR_ID, gw);
}, 5*60*1000);
});