This commit is contained in:
Bluepr1nt
2017-03-29 14:01:58 +02:00
parent 9d5217d459
commit e0fa62b36c
+3 -2
View File
@@ -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);