Hello
Figure out if packets are being sent and received
Yes they are. I just see one of my node in my traffic tab.
Figure out if those packets validly decrypt
Yes, I juts decript it and the message is valid
Hex: 613136623935396336366431653835663130346731333568306932306B3431346C33353331
=>
String: a16b959c66d1e85f104g135h0i20k414l3531
The string is correct (the letter is a type a of mesure, the numbers are the value. With that paylod format, I store the value and save it into a DB (but it does not do it)
function Decoder(bytes, port) {
var str=String.fromCharCode.apply(null,bytes);
var astr = str.split(",");
var regex = /([a-z]+)(\d+)/g;
//var resultats = [];
var paire;
var decoded = {}
var te,pr,hu,lu,w1,w2,w3,da,ts,ga,ba,ar,an,it,wr;
while (null !== (paire = regex.exec(astr[0]))) {
//console.log(paire[1]);
switch(paire[1]){
case 'a':
//console.log("te",paire[2]);
te=paire[2];
break;
case 'b':
//console.log("pr",paire[2]);
pr=paire[2];
break;
case 'c':
//console.log("hu",paire[2]);
hu=paire[2];
break;
case 'd':
//console.log("lu",paire[2]);
lu=paire[2];
break;
case 'e':
//console.log("w1",paire[2]);
w1=paire[2];
break;
case 'f':
//console.log("w2",paire[2]);
w2=paire[2];
break;
case 'g':
//console.log("w3",paire[2]);
w3=paire[2];
break;
case 'h':
//console.log("da",paire[2]);
da=paire[2];
break;
case 'i':
//console.log("ts",paire[2]);
ts=paire[2];
break;
case 'j':
//console.log("ga",paire[2]);
ga=paire[2];
break;
case 'k':
//console.log("ba",paire[2]);
ba=paire[2];
break;
case 'l':
// console.log("ar",paire[2]);
ar=paire[2];
break;
case 'm':
// console.log("an",paire[2]);
an=paire[2];
break;
case 'n':
//console.log("it",paire[2]);
it=paire[2];
break;
case 'o':
//console.log("wr",paire[2]);
wr=paire[2];
break;
}
//resultats.push(paire);
}
return {
te:te,
pr:pr,
hu:hu,
lu:lu,
w1:w1,
w2:w2,
w3:w3,
da:da,
ts:ts,
ga:ga,
ba:ba,
ar:ar,
an:an,
it:it,
wr:wr,
}
}
Figure out if the frame count or join nonce are fresh and not re-used
This I do not understand how to do. How can I check if it’s re-used?
Thank for your patience