Hi all, im using perak/meteor-mqtt-collection so when i get a mqtt message it’s inserted into a specified collection in this way: id (id of the document)
topic (topic that the message was published to)
message ()
| data of the message(like value : 30 or json format)
what i need is to insert (or update) this data into a different collection and delete the original message…
Maybe look into leveraging matb33:collection-hooks on the server. When your collection receives an MQTT topic you could fire an .after.insert or .after.update collection hook to handle copying the necessary data into your separate collection.