This commit is contained in:
Bluepr1nt
2017-03-29 12:43:56 +02:00
parent 182aa339f9
commit 4cd8ba16d2
+7 -1
View File
@@ -21,7 +21,13 @@ var parseTelegram = function(data, callback){
//TOE1
regx = '/1-0:1\.8\.1\((\d{6}\.\d{3})\*kWh\)/g';
var FirstS = "1-0:1.8.1(000458.526*kWh)";
regx = new RegExp("^([a-z0-700]{*,})$");
if (regx.test(string)){
console.log("Yes binnen");
}else {
console.log("No!!!!")
}
found = str.match(regx);
console.log("\n\nPARSING\n");