bin.shen
2016-12-01 cab756d1a1c484076d21361fd5c4edb42043963e
updates
1 files modified
4 ■■■■ changed files
server2.js 4 ●●●● patch | view | raw | blame | history
server2.js
@@ -26,6 +26,9 @@
                return;
            }
            console.log(moment().format('YYYY-MM-DD HH:mm:ss') + " => " + value);
            /*
            //3.传感器数据上传
            if(value.startsWith('5a0034010003')) {
                method.insertDocument2(db, value, function(data) {});
@@ -50,6 +53,7 @@
                socket.write(new Buffer(config.OUTPUT_6));
                return;
            }
            */
        });
        socket.on('close', function(data) {
            console.log('Closed socket: ' + socket.remoteAddress +' '+ socket.remotePort);