moscajs / mosca

MQTT broker as a module
mosca.io
3.2k stars 513 forks source link

Changing fields of Data that is saved in MongoDB #625

Closed ghost closed 7 years ago

ghost commented 7 years ago

Hello community I am using MongoDB as Backend of Mosca. I saw that Mosca Log info is saved in MongoDB with fixed data fields (i.e. value, topic, options). So, is there any solution if i want to add more data fields or edit these fields for a specific purpose ?

Thank you for your help.

mcollina commented 7 years ago

No, you should not do that. That storage is done for Mosca metadata, not for user data.

ghost commented 7 years ago

@mcollina: thank you for your rep. I saw that when i use mongoDB with mosca for sensing/ controling devices. There is a importance parameter that is time. I think that you shoud add time field inside stored data. Thank you