By ritaCoral
Hello,
Hope this message finds you well.
I have created a droplet and installed a Mosquitto MQTT broker so our sensor would send data to the cloud/droplet.
So far so good as we can see the sensor data in the droplet console.
Question: how can we “transfer” sensor data from the droplet console to the mongodb database ?
I understand the answer may be “length” but any help is more than welcome so if possible, please point me in the right direction with tutorials or product guides?
Thank you.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hi @ritaCoral,
The below links can provide some guidance on storing Mosquitto MQTT broker sensor data to MongoDB database.
https://github.com/dennisdegreef/mqtt-mongo-recorder
https://www.hackster.io/14872/temperature-logging-using-mqtt-and-mongodb-a58cce
I hope this helps!
Regards, Rajkishore
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.
