From 9d5217d459eae4e0d1ecc2ab4072617af9e5c9ee Mon Sep 17 00:00:00 2001 From: Bluepr1nt Date: Wed, 29 Mar 2017 13:59:31 +0200 Subject: [PATCH] d --- mean-app/server/routes/thingapi.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mean-app/server/routes/thingapi.js b/mean-app/server/routes/thingapi.js index 78cf278..b63c99c 100644 --- a/mean-app/server/routes/thingapi.js +++ b/mean-app/server/routes/thingapi.js @@ -30,9 +30,8 @@ var parseTelegram = function(data, callback){ //} //TOE1 - regx = /1-0:1\.8\.1\((\d{5,6}\.\d{3})\*kWh\)/g - //found = str.match(regx); - found = regx.exec(data); + var regdx = /1-0:1\.8\.1\((\d{5,6}\.\d{3})\*kWh\)/g + found = str.match(regdx); console.log("found:"); console.log(found[0]);