t
This commit is contained in:
@@ -32,12 +32,14 @@ var parseTelegram = function(data, callback){
|
||||
//TOE1
|
||||
regx = /1-0:1\.8\.1\((\d{5,6}\.\d{3})\*kWh\)/g
|
||||
found = str.match(regx);
|
||||
found = found[0].split(")");
|
||||
found = found[0].split("(");
|
||||
|
||||
console.log("found:");
|
||||
console.log(found[0]);
|
||||
console.log(found[1]);
|
||||
if(found)
|
||||
toe1 = found[0];
|
||||
toe1 = found[1];
|
||||
console.log(toe1);
|
||||
|
||||
//TOE2
|
||||
|
||||
Reference in New Issue
Block a user