Add correlation ID to mqtt messages


I would like to have correlation ids in mqtt messages so that I can simply track gateway messages with uplinks. Every message received by gateway would have an uuid that would be carried to NS, join server, AS. This would help when debugging messages that are dropped by NS for example.


This is probably best reported as a feature request on Github.

I’d start with so that it is tagged at source, and then work your way up through the layers.

Just keep in mind that if multiple gateway-bridges are generating multiple UUID’s, you’d want a fairly large range available to you as you scale out gateways…


I needed that in a hurry and ended up using a hash of gateway MAC, frequency, and timestamp to correlate the raw gateway messages to those appearing on the application topic. In theory maybe spreading factor should be in there too.