MQTT broker + mongoDB

How to integrate MQTT broker with mongoDB?

I am posting gps coordinates from client to broker and would like to save this in MQTT broker using mongoDB,

Understand if some pointers will be split for the same

+4
source share
5 answers

I searched around and did not find a suitable solution for myself, so I created it: https://github.com/izmailoff/mqtt-mongo .

See README for more details . In fact, this is a standalone service that connects to the MQTT and MongoDB brokers and subscribes to topics of interest to you. You can select a collection for each topic in the config.

- , , Java/ Scala JVM-, ​​.

+4

, Node -Red (http://nodered.org)

MQTT json- , MQTT node, mongodb node.

, node, .

+3

, , HiveMQ MongoDB. .

, MongoDB. , , .

+3
source

This is an old question, but I needed to do something similar. I have a subscriber who subscribes to topics that interest me to save on Mongo. It just saves messages in db. I have not yet addressed the problem of scaling. But in my situation, I can break down these messages based on topics.

0
source

Here is a tutorial that explains how to store mqtt messages in MongoDb using Node.js:

https://www.compose.com/articles/building-mongodb-into-your-internet-of-things-a-tutorial/

hope this helps

0
source

Source: https://habr.com/ru/post/1543561/


All Articles