Hello all,
I would like to parse data coming from my Lora gateway coming to port 1700 with node red, but I don't want to reinvent the wheel and I am sure that it has already be done, so I was wondering whether you could point me out to those parsers that may be already imlemented.
My intention was to make use of node-red to read the socket UDP whose port is 1700 and later using willem4ever decrypt to decrypt the payload and thus check that the incoming data is the one expected. So far, I can read the data from such a port with node-red, but I need to parse such a data, show below.
Could some of you give me pointers to the parsers repos?
Thanks in advance,
Regards!
{"rxpk":[
{
"tmst":2599362892,
"time":"2016-04-12T13:56:43.577925Z",
"chan":2,
"rfch":1,
"freq":868.500000,
"stat":1,
"modu":"LORA",
"datr":"SF8BW125",
"codr":"4/5",
"lsnr":7.5,"rssi":-51,
"size":15,
"data":"QAIBAQKAiQABsVxsgWYd"
},
{
"tmst":2599362892,
"time":"2016-04-12T13:56:43.577925Z",
"chan":0,
"rfch":1,
"freq":868.100000,
"stat":1,
"modu":"LORA",
"datr":"SF8BW125",
"codr":"4/5",
"lsnr":-3.2,"rssi":-101,
"size":15,
"data":"QAIBAQKAiQABsVxsgWYd"}
]}
EDIT> I think that making using of a function in node-red that gives you the data, would be engough right? Something like
$.rxpk[:1].data