This commit is contained in:
Bluepr1nt
2017-03-29 13:59:31 +02:00
parent a648887c44
commit 9d5217d459
+2 -3
View File
@@ -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]);