emqx/emqx-auth-mongo

How to set format of MQTT message to store into Mongo

Closed this issue · 1 comments

Dear author

I want to store my MQTT messages from EMQTT to Mongo.
I am confusing how can I set the format of these message before storing into Mongo.
For example, the format of message as a Json object I want to store is:
{ value: 10,
topic: 'mqtt',
qos: 0, }

Hope you have. Thank you so much.