I am trying to take data from The Things Network over MQTT to a MySQL DB. I posted the question here in with one of my issues:
https://stackoverflow.com/questions/39310266/node-red-json-parsing-not-working.
I want to take this JSON data:
{"payload":"Gc4FaAAAFwBoAA==","port":223,"counter":4527,"dev_eui":"00DEAD00BEEF0002","metadata":
[{"frequency":902.3,"datarate":"SF10BW125","codingrate":"4/5","gateway_timestamp":1299905004,"channel":0,"server_time":"2016-09-
03T18:40:46.106713105Z","rssi":-31,"lsnr":12.3,"rfchain":0,"crc":1,"modulation":
"LORA","gateway_eui":"1234567887654321","altitude":0,"longitude":0,"latitude":0}
]}
Below is what I am looking to insert into the DB.
- The first 3 characters of the payload
- The "rssi" and "latitude" and "longitude"
Can someone guide me though this?