diff --git a/mean-app/server/routes/thingapi.js b/mean-app/server/routes/thingapi.js index e3af8a4..78cf278 100644 --- a/mean-app/server/routes/thingapi.js +++ b/mean-app/server/routes/thingapi.js @@ -31,7 +31,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 = str.match(regx); + found = regx.exec(data); console.log("found:"); console.log(found[0]);