Hi,
I have been thinking of a way to remove some messages (based on some data from the database).
Node | <- Lorawan -> | Gateway (packet forwarder) | <- UDP -> | Gateway Bridge | <- MQTT -> | Filter Component | <- MQTT -> | Networkserver
The filter component would work like this:
- Listen to everything on the mqtt broker
- Receives a message
- Decode it, to get the
devaddr
- Make a database request to get the
nwk/app-swkey
. - Use brocaar/lorawan to ValidateMIC to see if it the
devaddr
matches thenwk-swkey
.
When this is done, I could tie an application to the message. Could this work or should I rethink it?
.