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