From c0cd9602b98218223f557b0c8b6c9f72d9177a0f Mon Sep 17 00:00:00 2001 From: Bluepr1nt Date: Thu, 30 Mar 2017 09:52:06 +0200 Subject: [PATCH] fix --- mean-app/server/routes/thingapi.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mean-app/server/routes/thingapi.js b/mean-app/server/routes/thingapi.js index bfb372e..e58ec2b 100644 --- a/mean-app/server/routes/thingapi.js +++ b/mean-app/server/routes/thingapi.js @@ -21,12 +21,10 @@ var parseTelegram = function(data, callback){ var str = data; //METER ID - regx = /0-0:96\.1\.1\((\d+)\)/g; + regx = /0-0:96\.1\.1\((\w+)\)/g; found = regx.exec((str)); if(found) device = found[1]; - console.log(device); - console.log("\n"); //TOE1 regx = /1-0:1\.8\.1\((\d{5,6}\.\d{3})\*kWh\)/g;